string to array conversion

From: greg (prax_at_chello.fr)
Date: 12/27/04


Date: Mon, 27 Dec 2004 17:53:59 +0100

hello,

I m trying to work on a little personal application and this is my first
contact with Delphi 7. Up to now, I ve found all the help i was needing from
the F1 help. But I ve been in trouble all the day with a conversion problem.

I have a Type which is made with a list of "array[1..n] of char" which i
use to get data from a text file via a TFileStream. I ve found it was the
best solution for what i m willing to do. I use the data from the Type to
fill a few editboxes with no problem. My troubles start when i try to take
data from the editboxes to put them in the Type.

If i try something like "type.arrayname := edtName.text", I get an error
because they re not of the same type (I have no problem doing "edtName.text
:= Type.ArrayName"). I ve tried to find something like IntToStr that would
be a "StringToArray" with no luck.

Is there a way to do it ?

Sorry for the spelling mistakes, English is not my native language,

Thanks for any help,

-- 
Grégory Privat
--------------------------------
http://gloarmy.free.fr
http://pavis.free.fr/prax
-------------------------------- 

Quantcast