Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
use QM function to load and modify files of type .psl
#12
the OpenSaveDialog function doesn't actually open or save a file. It's just a gui that allows a choice and returns that choice as a string. You still need to use getfile to open and setfile to save it.

Code:
Copy      Help
str s1
if OpenSaveDialog(0 s1 "psl files[]*.psl")
,;out s1
,str pt
,inp pt
,str s.getfile(s1);; load the file into a string so you can work with it
,
,s.findreplace("select partition" F"select partition {pt}")
,out s
,OpenSaveDialog(1 s1 "psl files[]*.psl")
,s.setfile(s1)


Messages In This Thread
RE: use QM function to load and modify files of type .psl - by Kevin - 08-25-2018, 04:15 PM

Forum Jump:


Users browsing this thread: 8 Guest(s)