Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GetNextModified not returning a number
Message
 
 
To
18/06/2002 11:00:54
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00669756
Message ID:
00669821
Views:
13
Mike,

Does it return .f. if the table is not table buffered?

>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.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform