Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Possible bug with seek in SP in VFP6?
Message
 
 
To
13/12/2004 20:29:11
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 6 SP5
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00968846
Message ID:
00969060
Views:
8
Hi Elmer,

You are right. The problem was with my incorrect use of SET EXACT.

Thank you for your help.

>>Beth,
>>Seems like it always returns .T.
>
>PMFJI, But could it be related to SET EXACT = OFF and seeking an empty string or matching on an partial match?
>
>
>SET EXACT ON
>?SEEK("") && returns .f. unless there are blank values in the key field
>SET EXACT OFF
>?SEEK("") && returns .t. ALWAYS
>
>SET EXACT ON
>?SEEK("TE")  && returns .f. requires exact match
>SET EXACT OFF
>?SEEK("TE") && returns .t. and lands on first record with TE as first 2 characters
>
>
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform