Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to use object created from browse.
Message
De
12/03/2001 05:31:39
 
 
À
05/03/2001 12:49:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00481936
Message ID:
00483985
Vues:
9
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform