[Date Prev][Date Next][Subject Prev][Subject Next][ Date Index][ Subject Index]

editing sgt files



Harry B. wanted to know:
"Yeah, I don't like menus and dlg boxes either. But how else to inspect or
edit stuff in a .sgt file? Do you know another way?"

You can save the contents of a save/get key by issuing this command from the
command line:

sa %x[,filename]

...where x is a key to which a macro has been assigned. The filename is
optional; if you don't specify it, you get x.sav as the saved file. If you
issue this command from within an xpl routine that's part of a dlg file, you
need to double the %%, as in

sa %%x[,filename]

One could write an xpl program that steps thru the macros and saves them to
files.

To assign a program to one of XyWrite's internal save/gets, issue the
command:

stsgt, program_name,x

where x is the name of a key. This could, of course, be the program you've
just edited.

The "save %saveget[,filename]" command works for any numbered macro, too.
 For instance, you could initialize a save/get to null (≪sv01,≫) and then
do:

save %01,filename

to create an empty file.

And no need to go anywhere near a menu/dlg file!

Tim Baehr
tbaehr@xxxxxxxx