Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP basic txtbtns - Add-Update rows not working with CAs
Message
 
To
23/04/2007 16:00:05
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01219051
Message ID:
01219089
Views:
7
>>>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
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform