
! script name: vstrategy.d/laststrategy
! var_topic: applys last strategy read in

!A
!A NAME:
!A
!A 	Apply Last Strategy
!A
!A DESCRIPTION:
!A
!A 	This script applys the last strategy that was read in.
!A
!B INSTRUCTIONS:
!B
!B 	There are no questions asked in this script.
!B
!# see also - htdocs/help.d/strategy.htm

stat=ChangeLabelStr("ScriptNameStatus","Function: applys last  strategy ")

DIM Destination$[256]
DIM Answer$[256]
DIM Name$[256]
DIM File_name$[256]
DIM Strategy$[256]

Lf$= CHR$(10)

Start:!
Read_from_file:!
stat= NamedVarStr("last strategy",WsStrategyVars,"NONE",Strategy$)
V1=CreateVariable("current strategy",WsStrategyVars,Strategy$)
GOTO Leave

Leave:!
IF NOT LEN(Destination$) THEN
	LOAD "vstrategy.d/strategytools"
ELSE
        LOAD Destination$
END IF
END

