08-28-2006 04:59 AM
08-28-2006 05:57 AM
Hi Luke
Saving script files are a litle bit tricky, because you have to enter the index of the tab in the Index. Use the command (maybe this command is not available in previous versions)
AutEdTabSave
Saves a file that is open in the script editor.
Call AutEdTabSave(AutEdTabIndex, [AutEdTabName])
The following example opens the dialog box for saving files. If you close the dialog box with OK, the example runs a loop that checks which index the active file has and saves the file under the selected name.
Dim intLoop Call AutEdInfoGet FileDlgName = AutEdName Call AutEdSaveAsDlg(FileDlgName) intLoop = 0 If DlgState = "IDOk" Then Call AutEdTabNameGet(intLoop) Do While intLoop < AutEdNoFiles And AutEdTabName <> AutEdName intLoop = intLoop +1 Call AutEdTabNameGet(intLoop) Loop Call AutEdTabSave(intLoop,FileDlgName) End If
Hope this helps.
Winfried
08-28-2006 06:45 AM