08-25-2018, 07:58 AM
How to save the modified file as a new file through the save dialog? I tried many times and could not succeed
Macro Macro2
Macro Macro2
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
,;s.setfile("$desktop$\abca.psl")
,OpenSaveDialog(1 s1 "psl files[]*.psl")