Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set Ansi not working in a build dll
Message
From
09/03/2008 14:14:18
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Set Ansi not working in a build dll
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01300236
Message ID:
01300236
Views:
119
I created a dll in vfp.

I have a method ExecuteExcalar to execute sql queries. in the INIT of the class i am setting ANSI ON, for some reason the sql statement is returning rows even though the exact value does not exists in the table. it is just matching the first characters, I understand that ANSI ON makes exact string comparison and exact length.

I am instantiating this dll class in a visual basic 6.0 project, I have the same effect if I instantiate the dll class in VFP.

Now if I Instantiate the class in VFP from the PRG, not from the dll, it makes the exact comparison. I don't understan why.

Do I have to make something additional beside SET EXACT ON and SET ANSI ON?

Thanks in advance.
Next
Reply
Map
View

Click here to load this message in the networking platform