saving settings.

Alex Tweedly alex at tweedly.net
Sat Apr 30 17:41:41 EDT 2005


Paul Salyers wrote:

> Dear Rev Programmer,
>
> I'm trying to get my program to save information into a text file.
>
> I'm using this format, is something wrong?
>
> put gDate1 && gDate2 && gDate3 && gDate4 && gDate5 && cr \
>         into url ("file:" & tFolderName & slash & "settings.txt")
>
> It's saving "gData1" instead on the information help in "gData1"

gDate1 or gData1  ?

> These are global settings but they do not change.
>
> I want them do come out like so:
>
> "Settings1","Settings2","Settings3","Settings4","Settings5"
>
i.e. with the quotes ??

Do you, by any chance, actually have a line like the following ?
put "gData1" && "gData2" && etc.  

You would probably want

put quote & gData1 & quote & comma & quote & gData2 & etc.

or perhaps
put quote & comma & quote into myBetween
put quote & gData1 & myBetween & gData2 & myBetween & etc.

-- 
Alex Tweedly       http://www.tweedly.net



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.10.4 - Release Date: 27/04/2005



More information about the use-livecode mailing list