Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set Exact On or Off
Message
From
11/07/2011 18:16:30
 
 
To
11/07/2011 16:33:01
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01517890
Message ID:
01517921
Views:
42
>>Hi,
>>
>>I ran into a problem today that was caused by the fact that in one of the form's LOAD method there was SET EXACT ON. So I started checking further and found that a few other forms have SET EXACT ON in the LOAD. I am not going to ask why I put this code there <g> (who knows). But in general do you recommend never to have SET EXACT ON as global setting (in LOAD) and only set it ON in places where it is necessary and then reset it back to OFF?
>
>It doesn't answer your question, but I can't recall ever using SET EXACT ON. I always use the == operator when I need an exact match.
>
>In general, if you're doing something "unusual" you want to minimize the amount of time it's in effect e.g.
>
>lcOldSetExact = SET( "EXACT " )
>SET EXACT ON
>
>* Stuff that requires SET EXACT ON goes here
>
>SET EXACT &lcOldSetExact
>
>That said, SET EXACT is scoped to a datasession. So, if your form uses its own datasession, when you close it the SET EXACT no longer has any effect. If it's OK for SET EXACT to be ON for the duration of the form, it might be OK to leave it in the .Load.

This is what I do, and I use the flags and bit settings on ASCAN() to control set exact there...
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform