Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Simple CA - what could be wrong?
Message
De
04/07/2009 03:24:13
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01409846
Message ID:
01410025
Vues:
161
This message has been marked as a message which has helped to the initial question of the thread.
>>>>>Hi everybody,
>>>>>
>>>>>Bellow is the CA definition for CA created using CA Builder. When I try to create an instance of it and call CA.CursorFill() the cursor is not created. I don't see what may be wrong here - may be it is a DISTINCT keyword?
>>>>>
>>>>>Looks like I can not use table aliases - CA gets confused.
>>>>
>>>>Hi Naomi,
>>>>
>>>>What does AError() return when CursorFill() fails?
>>>>
>>>>
>>>>hth
>>>>-Stefan
>>>
>>>I didn't have a chance to find it - just fixed the problem. Apparently, you can not use aliases in SelectCmd - CA gets confused.
>>>
>>
>>Interesting, how did your .SelectCmd content look like?
>>
>>FWIW, the following just worked in a test CA here:
>>
>>o.SelectCmd = 'Select CU.* From customers CU Left Join invoices INV On INV.cust_id = CU.cust_id Where CU.cust_name Like ?P1'
>>
>>
>>
>>
>>Regards
>>-Stefan
>
>It was
>
>selectCmd = "select distinct DO.OptionID, DD.Option_Desc from DealerOpts DO INNER JOIN DealerOptions DD on DO.OptionID = DD.OptionID"

DO is a reserved word.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform