
! script name: filing.d/changesavetype
! topic: change save file mode

!A
!A NAME:
!A
!A 	Change Save Mode
!A
!A DESCRIPTION:
!A
!A 	This script will change the mode for "how to save files"
!A
!B INSTRUCTIONS:
!B
!B 	SAVE MODE IS Entire, Geometry, Turbo_info:
!B
!B 		E - Entire will save the entire job, geometry and turbo_info.
!B 		G - Geometry will only save the geometry portion of the file.
!B 		T - Turbo_info will only save the TURBO POST information.
!B

DIM Answer$[256],Destination$[256]

Stat=ChangeLabelStr("ScriptNameStatus","Function: change save mode ")

Stat=SetInputFormat("a1",",E,G,T,")
Stat=GetValue("SAVE MODE IS Entire, Geometry, Turbo_info",Answer$)
IF (ExitScript(Destination$)) THEN Leave
SELECT Answer$
CASE "G"
	Tempvar= CreateVariable("how to save files",WsSystemVars,1.0)
CASE "E"
	Tempvar= CreateVariable("how to save files",WsSystemVars,2.0)
CASE "T"
	Tempvar= CreateVariable("how to save files",WsSystemVars,3.0)
END SELECT

Leave:!
Stat=SetInputFormat("n4","")
IF (NOT LEN(Destination$)) THEN
	 LOAD "typecontrol"
ELSE
	 LOAD Destination$
END IF
END
