I've created on desktop a basic two card 'dictionary' type of app with a scrolling list of of 'terms' on Card A which when clicked leads to an information field corresponding to that term on Card B.
On the desktop the two cards are populated from an array which successfully saves and loads using the encode and decode commands to specialfolderpath ("documents").
I now would like to run the app on mobile (android) and although the app transfers to mobile nicely, the Array data is missing and here lies my problem as I'm not understanding how to transfer the 'array' that is saved on the desktop to the mobile device.
So far I thought I might save the array as a custom property within the app using the code from the BYU Array example
Code: Select all
on closeStack
set the dictionaryArray of this stack to gDictArray
end closeStack
but I'm not sure how to save the 'gDictArray' to the mobile specialfolderpath("documents") so that it can then be loaded up by the mobile app.
Hope this makes sense!
Grateful for any advice.
Many thanks,
Glenn