Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SEEK() Problem
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
Miscellaneous
Thread ID:
00097886
Message ID:
00097916
Views:
23
I never saw such bug and I have no idea what can produce it. Maybe it's related to the other problem you have in the other thread?

But you may try an (ugly) workaround like this:
lRet = .NULL.
do while IsNull(lRet)
   lRet = seek(cSeek, 'MyTable', 'MyTag')
enddo
Assuming that the DO WHILE will not be infinite :), this should "solve" the problem. At least, the program will work until you find the real cause.

Vlad

>I have a SEEK() function that occasionally (about 1 time in 100) fails to return ANYTHING.
>
>lRet = seek(cSeek, 'MyTable', 'MyTag')
>
>If lRet
>   End Transaction
>else
>   Rollback
>endif
>
>I get a type mismatch error, and Debug shows that lRet is .NULL.
>
>I can't duplicate it on demand, but it sure messes up the program.
>
>Any ideas?
>
>TIA
>Barbara
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform