I want to be able to enter data into an Editbox
and then store that data in a array[0..50] of char variable.
Any ideas?
var
strMyString: String;
arrChar: Array[0..49] of Char;
begin
strMyString := Copy(EditBox.Text,1,50);
arrChar := strMyString.ToCharArray;
end;
Hope this helps!
Scott
"Dingus" <din...@iniindabababa.co.zu> wrote in message
news:418c0e1b$1...@newsgroups.borland.com...
"Scott Gast" <Sc...@S2Software.com> wrote in message
news:418c10a5$1...@newsgroups.borland.com...
> Thanks for info - I'm using D7 and it doesn't work :(
var
MyString: String;
arrChar: Array[0..49] of Char;
i: Integer;
begin
MyString := Copy(EditBox.Text,1,50);
arrChar := PChar(MyString);
end;
Joanna
--
Joanna Carter (TeamB)
Consultant Software Engineer
TeamBUG support for UK-BUG
TeamMM support for ModelMaker
> Strings inside D8 are now objects, so you can do something like this:
Scott, this is the IDE general group, please don't assume folks are using
.NET; in fact they are more than likely not.
The original messages should really have been posted to either
..language.delphi.dotnet or ..language.delphi.Win32
PS: Sorry if I chose the incorrect NG - should I place this posting in the
other?
"Joanna Carter (TeamB)" <joa...@btinternetxx.com> wrote in message
news:418c...@newsgroups.borland.com...