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.