Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to use object created from browse.
Message
From
12/03/2001 05:31:39
 
 
To
05/03/2001 12:49:06
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00481936
Message ID:
00483985
Views:
10
Rajesh,

have a look at the following sample code :

Best wishes,
Neil

* -------------------------------------------
SET PROC TO testproc
*
* TestProc just contains the following lines
* FUNCTION whenclause
* RETURN goTestobject.WHEN()
* FUNCTION validclause
* RETURN goTestobject.VALID()
*

goTestobject = CREATEOBJECT('browsehandler')

BROWSE NORM VALID validclause() WHEN whenclause() NAME loWhatever

DEFINE CLASS browsehandler AS CUSTOM

NAME = "browsehandler"

PROCEDURE WHEN
WAIT WINDOW 'WHEN called - user wants to change rows'
RETURN .T. && return .F. if record doesn't pass test
ENDPROC


PROCEDURE VALID
WAIT WINDOW 'VALID called - record has changed'
RETURN .T. && return .F. if record doesn't pass test
ENDPROC


ENDDEFINE
Previous
Reply
Map
View

Click here to load this message in the networking platform