Re: string to array conversion
From: ATM Dude (news_at_phreakshow.no)
Date: 12/27/04
- Next message: Simon: "Re: Running a procedure every x seconds"
- Previous message: Moi: "Re: ADOConnection - odd problem solved but why?"
- In reply to: greg: "string to array conversion"
- Next in thread: Maarten Wiltink: "Re: string to array conversion"
- Reply: Maarten Wiltink: "Re: string to array conversion"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 27 Dec 2004 13:29:15 -0800
Maybe I'm new to all of this and there are better routines to handle
these, but what I would do is wind up writing my own
"CArrayToStr(StringTarget, ArraySource, ArrayLen)" and a coresponding
"StrToCArray" function.
greg wrote:
>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,
>
>
>
- Next message: Simon: "Re: Running a procedure every x seconds"
- Previous message: Moi: "Re: ADOConnection - odd problem solved but why?"
- In reply to: greg: "string to array conversion"
- Next in thread: Maarten Wiltink: "Re: string to array conversion"
- Reply: Maarten Wiltink: "Re: string to array conversion"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|