Hi all,
Does anyone know how i could refernce a single character in an AnsiString, such as the one provided by the Edit->Text control.
I have tried variations on a theme, such as ..
char* name
for (i = 1; i <= Edit->Text->Length; i++){
name[\i] = Edit->Text[\i];
}
.. but the problem seems to be that the char* in the edit control are not being referenced correctly! Any ideas?
Perhaps declaring 'name' as AnsiString might help? Does anyone tell me how?
Regards,
JayB0t![[afro] [afro] [afro]](/data/assets/smilies/afro.gif)
"Always know what you say, but don't always say what you know!"
Does anyone know how i could refernce a single character in an AnsiString, such as the one provided by the Edit->Text control.
I have tried variations on a theme, such as ..
char* name
for (i = 1; i <= Edit->Text->Length; i++){
name[\i] = Edit->Text[\i];
}
.. but the problem seems to be that the char* in the edit control are not being referenced correctly! Any ideas?
Perhaps declaring 'name' as AnsiString might help? Does anyone tell me how?
Regards,
JayB0t
![[afro] [afro] [afro]](/data/assets/smilies/afro.gif)
"Always know what you say, but don't always say what you know!"