Code: Select all
set the filename of stack "MyData" to gPrefsDat
save stack "MyData"
I don't know if this is what you want. And you probably don't want to create a stack "myData" every time you start the main stack.
you call initPrefDB on openstack. So every time you open the stack it will create a stack "myData" and save it. You might want to test for the existence of a stack "myData" before you create the stack. If the stack is there I would open the stack.
I always find it safer to enclose literals with quotes. E.g.
Code: Select all
set the text of field txtBarrysFolder to fldrBarrys
Code: Select all
set the text of field "txtBarrysFolder" to fldrBarrys
Kind regards
Bernd