Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with _screen.activeform
Message
De
16/07/2004 08:05:00
 
 
À
16/07/2004 04:22:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00925061
Message ID:
00925096
Vues:
10
It is possible that the "_screen.activeform" is not currently an object reference ( clicked on desktop) therefore place the following in the toolbar button click event:
if type("_screen.activeform.name") = "C"
  do form findrec with _screen.activeform
endif
and in the menu add the following to the "Skip for"
type("_screen.activeform.name") <> "C"
Glenn


>i have do form findrec with _screen.activeform in my menu and do form findrec with thisform in toolbar.
>
>in form findrec, i add a property frmwithgrid. and in the init() i put,
>
>
>lparameters frmwithgrid
>
>set cursor on
>
>public findcontinue
>
>findcontinue=.f.
>if type("m.frmWithGrid") # "O"
>	thisform.frmwithgrid = null
>else
>	thisform.frmwithgrid = m.frmwithgrid
>endif
>
>
>but when i run findrec in menu, i'm getting error ACTIVEFORM is not an object, in my code in line thisform.frmwithgrid.parent.activeform.gridhighlighter1.nrecno=recno().
>
>what is wrong? pls help. TIA.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform