Path problem in RevGOURL + How to find current directory path

Francis Nugent Dixon effendi at wanadoo.fr
Sat Feb 18 10:03:23 EST 2006


Hi Pradeep,

Put these commands where you like (the mainstack Stack Script is a good 
idea)

      on openStack
         global GVSaveDefaultPath
         put the defaultfolder into GVSaveDefaultPath  -- Keep for later 
restore.
         put "xxxxxx" into curPath                                       
-- Set your folder path here.
         set the defaultfolder to curPath                            -- 
Now you are OK.
      end openStack

If you want to restore the default folder for later use :

      on closeStack
         global GVSaveDefaultPath
         set the defaultfolder to GVSaveDefaultPath
      end closeStack

NOTE : Check out the "Important" section of the defaultfolder page in 
the online
               documentation to respect the rules on your path name.

P.S. As strongly recommended by all users, try to assign a standard 
naming convention
         (prefix) to all your fields, local and global variables, etc. - 
you won't regret it !

-Francis






More information about the use-livecode mailing list