Hi this is in C++ using Borland....i have an error "Constant expression required" on this line : "TableType aTable[x];"...it seem that the number from "edit->text" is not valid...Can somebody tell me why it wont take the value of "edit->text"?
x=edit->Text.ToIntDef(0);
TableType aTable[x];
aTable[x].tableNo= MyRest.findTable(edtNo->Text.ToIntDef(0));
aTable[x].computerType = (edtname->Text.ToIntDef(0));
aTable[x].name = GuestName->Text;
aTable[x].arrivalTime = Arrival->Text;
aTable[x].departTime = Departure->Text;
2006-09-29
17:39:43
·
1 answers
·
asked by
jcol
2
in
Computers & Internet
➔ Programming & Design
Tables has already been give a size of [40] somewhere in the program..
2006-09-30
04:41:26 ·
update #1