murphy625
04-11-2005, 03:27 PM
I am trying to make my interface pop up the file select window and store the filename into a var \50 instead of executing it.
Is there a neat and clean way to do this?
I understand that I could put the command !\50=C$/galiloi/work/xxxx.run right into each program itself, but this is not an option because I dont want the file to execute.
I came up with the idea that I could set a flag (!\49=1), then have each program that is loaded read that flag, set \50 and then EOP if the flag is 1 or continue executing if the flag is 0 but this just seems messy.
Is there not a better way to do this using a single command line under an Mcode?
Thanks
Murphy
Murphy's tip of the day! <<A new feature posted by the guy who asks to many questions .. :D
This code will create a file with a numerical value and add +1 to it each time its run. A new file will be created with a name that is 1 number higher than the last file. (\75 must be a number for this to work)
[[FILE_NAMING_ROUTINE]]
!\75={\75+1} :\76=\75.DMC :FILEOPEN WRITE;C$/GALILOI/WORK/\76 :FILEWRITE \999 :FILECLOSE WRITE
Is there a neat and clean way to do this?
I understand that I could put the command !\50=C$/galiloi/work/xxxx.run right into each program itself, but this is not an option because I dont want the file to execute.
I came up with the idea that I could set a flag (!\49=1), then have each program that is loaded read that flag, set \50 and then EOP if the flag is 1 or continue executing if the flag is 0 but this just seems messy.
Is there not a better way to do this using a single command line under an Mcode?
Thanks
Murphy
Murphy's tip of the day! <<A new feature posted by the guy who asks to many questions .. :D
This code will create a file with a numerical value and add +1 to it each time its run. A new file will be created with a name that is 1 number higher than the last file. (\75 must be a number for this to work)
[[FILE_NAMING_ROUTINE]]
!\75={\75+1} :\76=\75.DMC :FILEOPEN WRITE;C$/GALILOI/WORK/\76 :FILEWRITE \999 :FILECLOSE WRITE