Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problems with ADO
Message
De
11/03/2002 10:53:56
Jorge Haro
Independent Consultant
Juarez, Mexique
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00630912
Message ID:
00630994
Vues:
12
I'm not sure I had those exact problems when binding ADO recordset fields directly to VFP textboxes but I had others, such as errors when the recordset wasn't open yet (there's no fields collection then). I use the Refresh and Valid methods/events of the textbox to set and read the recordset data. It's a concept I took from this Jim Booth article:

http://www.levelextreme.com/wconnect/wc.dll?FournierTransformation~2,25,437

That article and this other one http://msdn.microsoft.com/library/techart/adojump.htm by John Petersen got me going on ADO, HTH.

>I´m doing experiences using ADO and I´m having some problems.
>
>In the ControlSource of textbox I´m puting MyRecordSet.Fields('Myfield').Value. Doing this, i have some problems:
>1- If MyRecordSet.Fields('Myfield').Value is NULL, my textbox doesn´t get the focus.
>2- When I change MyRecordSet.Fields('Myfield').Value occurs an error unless I fill the InputMask property in my Textbox.
>
>Moreira Filho.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform