Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Activeform not an object problem
Message
De
29/03/2004 20:18:03
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Activeform not an object problem
Divers
Thread ID:
00890642
Message ID:
00890642
Vues:
52
i have mygrid1 on form1. i also have a toolbar that show form findrec. this form has a text box that asks for search string and a command button to do the locate. i want to mygrid1 to point to the found record while form findrec is active. so i do this (thanks to borislav borissov)

in the toolbar i have
do form findrec with thisform
i add a propery frmwithgrid on form findrec. and in it's init event i have this,
lparameters frmwithfrid
if type("m.frmwithgrid") # "O"
   thisform.frmwithgrid = null
else
   thisform.frmWithGrid = m.frmwithgrid
endif
in locate i refresh mygrid1 with this,
thisform.frmwithgrid.mygrid1.refresh()
but mygrid1 does not point to the found record, so i put setfocus first to mygrid1 with this,
thisform.frmwithgrid.mygrid1.setfocus()
thisform.frmwithgrid.mygrid1.refresh()
in the first search, mygrid1 highlights the found record. but after the second try, i get error "activeform is not an object".

what to do? pls help.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform