Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GetNextModified not returning a number
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00669756
Message ID:
00669870
Vues:
12
I've run into this before too, and I couldn't come up with a way to reproduce it reliably. It only seemed to happen to me in VFP7.

>I'm pretty sure I've chased this down before. Any idea why GetNextModified would not return a number and instead a .F.?
>
>I have some code like:
>
>
lnRecord = getnextmodified(0, lcAlias)
>do while lnRecord <> 0
>	go lnRecord in (lcAlias)
>	lcState  = getfldstate(-1, lcAlias)
>	llRemove = not isnull(lcState) and ;
>		(lcState = replicate('3', fcount(lcAlias) + 1) or ;
>		left(lcState, 1) = '4')
>	if llRemove
>		tablerevert(.F., lcAlias)
>	endif llRemove
>	lnRecord = getnextmodified(lnRecord, lcAlias)
>enddo while lnRecord <> 0
>
>And every once in a while I get an error about lnRecord not being a number; my error log shows that lnRecord is a .F. on the DO WHILE line.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform