Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set Ansi not working in a build dll
Message
De
13/03/2008 13:50:09
 
 
À
13/03/2008 13:43:51
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01300236
Message ID:
01301845
Vues:
7
>I did that and didn't work, this is my code:
>
>lcAlias = SYS(2015)
>
> SET ANSI ON
> &lcSQL into cursor &lcAlias
>
> IF RECCOUNT(lcAlias) > 0 THEN
> lcFieldName = FIELD(1, lcAlias)
>
> lcFieldName = lcAlias + "." + lcFieldName
> lRetVal = &lcFieldName
> ELSE
> lRetVal = NULL
> ENDIF
>
>The other problem, I am havin is that if I run a query in FoxPro or intantiate the class in foxpro I get the value the query should return, but If I instantiate it from the dll, and the sql command with the code above, I get a value that has nothing to do with the value. at the beginning I was thinking it was getting the value from other table, that is why i explicitly use alias.field, but still doesn't work.
lcAlias = SYS(2015)
SET ANSI ON 			
lcSQL = lcSQL + [ into cursor ]+lcAlias
&lcSQL
IF RECCOUNT(lcAlias) > 0
   lRetVal     = EVALUATE(lcAlias + "." + FIELD(1, lcAlias))
ELSE
   lRetVal = NULL	
ENDIF
?
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform