char array/AnsiString problem...
Hi everyone, this is my first post on that forum, I hope I'll find the answers to my questions here!
I've already programmed in DOS and Shell but never did with Borland Builder (Windows GUI) so I'm new to some details in syntax and how to get information from built-in objects...
My problem is that I've coded a little function that sorts an int array with a kinda weird algorithm (anyway!)... So I have 9 boxes to enter the integers not sorted and I have a button, then 9 other boxes where I can see the result from the first 9 boxes.
I had a little problem when I had to take what I wrote in Edit1.Text (TEdit) and then put it in a char array (I want to stock the data before converting it to an integer value).
Here's the problematic line (with the var definitions), you don't need anything else to give me the answer since the problem is only a difference between the TEdit.Text datatype and the char * datatype.
Someone told me there was something like "Edit1->Text.toString()" but I'm really not sure about it, I tried and it gave nothing... So what should I do to put that AnsiString value into my char array???
Thanks for replies!!
BTW; why is Salem so against the use of "void main()"???