Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setup Wizard
Message
From
29/02/2000 16:29:12
 
 
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
Miscellaneous
Thread ID:
00339360
Message ID:
00339404
Views:
21
Just a couple of comments and corrections:

In the do method, you want to place the call to the CheckVersion() method just before the display the application menu and toolbar calls. The way I have the code below is correct, but I need to emphasize the point.
        This.ReleaseSplash()
ENDIF

*--------------------------------------------
*--- Check the version information
*--------------------------------------------
IF This.lCheckVersion
	IF !This.Checkversion()
		RETURN .F.
	ENDIF
ENDIF

In the CheckVersion method, I forgot to remove some debugging stuff. Change the code:

*--------------------------------------------------------
*--- Get a reference to the Local STF file
*--------------------------------------------------------
lcEXE = SYS(16,0)
IF VERSION(2) <> 0
	lcLocalSTF = getfile("STF", "Open STF file")
ELSE
	lcLocalSTF  = ADDBS(JUSTPATH(lcEXE))+"Setup\Setup.stf"
ENDIF

To:
*--------------------------------------------------------
*--- Get a reference to the Local STF file
*--------------------------------------------------------
lcEXE = SYS(16,0)

IF VERSION(2) = 0
	lcLocalSTF  = ADDBS(JUSTPATH(lcEXE))+"Setup\Setup.stf" && Runtime
ELSE
	RETURN .T. && Not running an exe
ENDIF

CREATE CURSOR stfcursor (cText C(65))
Previous
Reply
Map
View

Click here to load this message in the networking platform