saving information.

Phil Davis davis.phil at comcast.net
Mon Mar 7 12:37:32 EST 2005


Here's one button script that would do it (assuming you pre-set the 
value in 'gMyTextFile'):


on mouseUp
   global gMyTextFile -- contains the full pathname of your text file

   put "--1-------" & cr & fld "first" & cr \
       & "--2-------" & cr &  fld "second" & cr \
       & "--3-------" & cr &  fld "third" & cr & cr \
       after url ("file:" & gMyTextFile)
end mouseUp


This would put the following into your text file:

--1-------
first field stuff lniuo niyu gkjyv jytf
--2-------
second field stuff k,jn kjn lj,hvkj hftchf dxhn tgrfxh rtx
--3-------
third field stuff uytf uy5fyjt ktfli uglu

--1-------
1st fld - round 2 oi hpioh iuhl iu
--2-------
2nd fld - round 2 oipo8jp;oji'


... and so on.

Phil Davis



Paul Salyers wrote:
> Dear Rev Programers
> 
> I need to know how to save field information from within a stack.
> 
> I have a button "save" when I click it I want safe the information in 
> the fields on a text file. I want it to add not replace.
> 
> 
> Paul Salyers
> PS1 - Senior Rep.
> PS1 at softseven.org
> Http://ps1.SoftSeven.org


More information about the use-livecode mailing list