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:
00097924
Views:
23
Thanks, Vlad, I'm already replacing the SEEK() code with a SEEK command followed by if found(). Because it is only occasional, I'm sure it's related to our other problems. All I can think of is that the network can't get the file for the SEEK() so it just continues, leaving the lRet value as .NULL.

Thanks,
Barbara

>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
Barbara Paltiel, Paltiel Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform