Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FOPEN Parameter Substitutes

Status
Not open for further replies.

hankm3

Programmer
Jan 27, 2002
284
US
Hello,

Example:

fopen 2 "C:\TEXT\test.txt" CREATE TEXT

I'd like to know if you can create a String Variable for the CREATE and TEXT parameters, that could be altered using a Dialog Box Button, Etc.

In some Languages I've used there was a String to Symbol function.

Thanks
 
The fopen command will not accept string variables for the parameters you wish to modify (the compiler does not like this). However, you could create a dialog that has a radiobutton group of READ, WRITE, READWRITE, CREATE, APPEND, and READAPPEND, as well as two checkboxes for TEXT and SHARED. Your script could read the different values currently set in the dialog box, then build the proper command based on the current settings. A case command would probably work best for this, off the top of my head.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top