Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set exact on
Message
From
22/05/2008 16:36:23
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
01319075
Message ID:
01319116
Views:
22
This message has been marked as the solution to the initial question of the thread.
>hi all,
>i have a situation at a customer site where i use the following command
>
>SET EXACT ON
>SELECT * FROM DMB WHERE DMB_BOM = DMBLINK INTO CURSOR PHIL NOFILTER
>
>this should select out only records where DMB_BOM = DMBLINK, what it does however is select out all records that start with DMBLINK. I am puzzled by this and added in the set exact on just above the line, it is also set at the top of the prg. i am lost on this, here are the rest of the set parameters from the top of the file. This is a program that i took over and is 8-10 years old
>
>SET SAFETY OFF
>SET EXACT ON
>SET DATE BRITISH
>SET STATUS OFF
>SET DELE ON
>SET SCOREBOARD OFF
>SET BELL OFF
>SET TALK OFF
>SET CONFIRM ON
>SET EXCL OFF
>
>~M
SELECT * FROM DMB WHERE DMB_BOM == DMBLINK INTO CURSOR PHIL NOFILTER
works regardless of "set ansi" setting (set exact has no effect in SQL).

or:
SELECT * FROM DMB WHERE DMB_BOM like DMBLINK INTO CURSOR PHIL NOFILTER
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform