Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Am I misusing TableUpdate()?
Message
De
14/09/1999 00:28:51
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00261437
Message ID:
00264331
Vues:
46
>This code breaks right before the wait window '3 '+alias() line with the error:
>'Function argument value, type, or count is invalid.'
>
>Doing a getfldstate before I click my action button shows:
>
>34444444444444444444444
>
>
>(in data environment, table customers is open, view custupdate is open with records for writing back onto and a table called custnums is open which is not related to this function)
>
>?!
>
>
>CursorSetProp('buffering',1,'Customers')
> select CustUpdate
> wait window '1 '+alias()
>lnFieldCount = AFIELDS(laFields,'CustUpdate')
>FOR nNothing = 1 TO lnFieldCount
> wait window '2 '+alias()
> DO CASE
> CASE GETFLDSTATE(nNothing,'CustUpdate') = 3 &&Breaks Here
> wait window '3 '+alias()
> SETFLDSTATE(nNothing,1,'CustUpdate')
> CASE GETFLDSTATE(nNothing,'CustUpdate') = 4
> SETFLDSTATE(nNothing,2,'CustUpdate')
> endcase
>ENDFOR

That doesn't make any sense. What does GETFLDSTATE(nNothing,'CustUpdate') show in the watch window in the debugger at ht time that the code breaks? How about nNothing?
Erik Moore
Clientelligence
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform