Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Closing form in INIT method
Message
 
 
À
08/02/2001 15:24:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00473278
Message ID:
00474290
Vues:
25
>You assigned the init to receive a parameter. When no parameters are passed the routine will assume the parameter value is .F., thereform pcount() = 1
>Test for a valid parameter instead. something like
>if VARTYPE("lcstkno") # "C"
> return .F.
>endif

If you want to do it in the load, you may use this approach. Declare lcstkno as Private variable in the calling procedure/form (if it's an application parameter, just use parameter statement instead of lparameter), when you can do in the Form's Load:
if vartype(lcstkno)<>"C" && Note, no quotes here
   return .f.
else
   return dodefault()
endif
HTH
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform