Re: read first character
Posted by matt on July 28, 2004
In Reply to: read first character posted by matt on July 28, 2004
ok easy i think but im stumped. i read from a text file. the number is 2323. it is displayed in label1.caption.
now::::: i want to read the third character in 2323 ..it would be 2. I can understand how to do it but
it has to be text. i want to read numbers.
: Initial : string;
: Name:= 'dd';
: showmessage (Initial);
: this works if label1.caption contains letters not numbers. how do i get the
numbers to work.
'dd' would actually be Label1.Caption . I just put in 'dd' to see if it read text. It does but it wont work if i input numbers. why?
Related Articles and Replies
[ DelphiLand FAQ ]