Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GetNextModified not returning a number
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00669756
Message ID:
00669870
Views:
13
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform