brahma at hindu.org
Fri Jul 27 20:35:21 CEST 2018
You will need this, I would endorse Tom's arrayEncode.
If you have not: Learn to array code RIGHT NOW, before going further with Livecode. I resisted array for years, and it bought me a boat load of silly coding of text files. And 100 of lines of unnecessary code.... then I are learned about arrays. I broke my head of the desk.. saying "oh wow is me!.... I have could have saved thousand of hours and lines of codes if use arrays from the beginning!" (ha)
(rough draft code)
Local sTempParamArray # may good to save a local,
Put fld "fuelNeed" into pTempParamArray["fuelNeeded'}
Put fld "timeToArrival" into pTempParamArray["timeToArrival""
Put pTempParamArray into sTempParamArray
command storeTempParams pTempParamArray
put specialFolderPath("documents") & "/tempSavedParams" into tSavedPath
put sTempParamArray into url ("binfile:" & tSavedPath)
# you will have some trigger get them back, I don't know what that would be:
Put specialFolderPath("documents") & "/tempSavedParams" into tSavedPath
put url ("binfile:" & tSavedPath) into pTempParamArray
put pTempParamArray into sTempParamArray
put getTempSavesParams() into pLastParams
put pLastParams["fuelNeeded"] into # whatever
put pLastParams["timeToArrival"] into # whatever
# code is a little verbose but easy to debug later.
# other wizards can improve on my baby xTalk
On 7/23/18, 11:57 AM, "use-livecode on behalf of John McKenzie via use-livecode" <use-livecode-bounces at lists.runrev.com on behalf of use-livecode at lists.runrev.com> wrote:
What I need help with is the issue of persistence.
More information about the use-livecode