Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP basic txtbtns - Add-Update rows not working with CAs
Message
De
23/04/2007 16:28:43
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01219051
Message ID:
01219100
Vues:
10
>>>>yes, it is the only cursor open at the time. It is a CursorAdapter thru ADO, if that makes a difference.
>>>
>>>Hard to say, then. Can you post some code?
>>
>>sure. This is the lines of code, but I can see the problem from the debugger as soon as I get the form up:
>>
>>
>>	FOR m.nFld = 1 TO FCOUNT()  && <----- is where it returns 2 and I know the table only has 1 field
>>        	IF TYPE(FIELD(m.nFld)) = "G"	&&skip for General fields
>>			LOOP					
>>		ENDIF
>>		IF OLDVAL(FIELD(m.nFld)) # CURVAL(FIELD(m.nFld))
>>			m.lHadMessage = .T.
>>			IF MESSAGEBOX(E_DIRTYREC_LOC,4+48) = MSGBOX_YES
>>
>>
>
>Beth, ALWAYS add alias in the functions where you can. No matter how you are sure you are in the right alias, you never now. Grid has focus and you are dead :-)
>
>FOR m.nFld = 1 TO FCOUNT([CAalias])  && <----- is where it returns 2 and I know the table only has 1 field
>    IF TYPE(FIELD(m.nFld,[CAalias])) = "G"	&&skip for General fields
>       LOOP					
>     ENDIF
>     IF OLDVAL(FIELD(m.nFld,[CAalias]),[CAalias]) # CURVAL(FIELD(m.nFld,[CAalias]),[CAalias])
>       m.lHadMessage = .T.
>       IF MESSAGEBOX(E_DIRTYREC_LOC,4+48) = MSGBOX_YES
>
This is wizard code, I do not want to mess with it too much. I put the alias in there, and I still get 2 for fcount where it should be 1.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform