Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set Talk
Message
From
22/03/2000 10:30:33
Scott Butts
Ims Specialty Services
Twin Falls, Idaho, United States
 
 
To
22/03/2000 06:58:46
Edward Crawford
City Facilities Management
Glasgow, United Kingdom
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00348785
Message ID:
00348892
Views:
21
Try this, I think I got it from the FoxPro Advisor a while back

DEFINE CLASS classsqlthermo AS CUSTOM

icsavesettalk = .F.
icuniquewindowname = .F.
lcsubclasssingpotential = .F.

PROCEDURE INIT
WITH THIS
.icsavesettalk = (SPACE(0))
.icuniquewindowname = (SPACE(0))
.lcsubclassingpotential = "X"

.icsavesettalk = SET('TALK')
.icuniquewindowname = SYS(2015)
DEFINE WINDOW (.icuniquewindowname) FROM 0,0 TO 1,1
SET TALK WINDOW(.icuniquewindowname)
SET TALK ON
ENDWITH
ENDPROC

PROCEDURE DESTROY
* reset talk to its previous state
LOCAL lcsavesettalk
lcsavesettalk=THIS.icsavesettalk
SET TALK &lcsavesettalk
*release the window created by this.init()
RELEASE WINDOW(THIS.icuniquewindowname)
ENDPROC

PROCEDURE zsample
PRIVATE osqlstatus
osqlstatus = CREATEOBJECT("classsqlthermo")
*sql statement here
RELEASE osqlstatus
ENDPROC
ENDDEFINE
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform