Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Server problem
Message
From
09/02/2007 18:54:32
Mike Yearwood
Toronto, Ontario, Canada
 
 
To
09/02/2007 16:06:36
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01194131
Message ID:
01194323
Views:
16
>>>OK Here's my solution. Thanks to all of you who contributed.
>>>Borislav - I don't see the need for your form of ?m.lcPermID since lcPermID is a local variable and the select is called only once. Perhaps I am missing something.
>>>
>>>lcSQL = "select * " + ;
>>>	"from TRPSurvey" + "..exported " + ;
>>>	"where ltrim(rtrim(PermID)) = " + lcPermID
>>>
>>>IF sqlexec(m.lnHandle,lcSQL,"crsImport") < 0
>>>   AERROR(laError)
>>>   MessageBox(laError[1,2])
>>>ENDIF
>>>
>>
>>How does it work? I do not see lcPermID surrounded by single quote.
>
>It works fine. lcPermID is a variable containing a character string. So its a simple concatenation.

Watch for my upcoming FoxPro Advisor article.
Previous
Reply
Map
View

Click here to load this message in the networking platform