Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamic View
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00540559
Message ID:
00541970
Views:
23
>Sorry to be so dull Larry but what does this bit actually do?
>
>lcsql = tcSQL + [ into cursor ] + tcAlias
> &lcsql

Chris,
If you passed in the following SQL statement and alias:

tcSQL = "select * from MyTable where MyField > 50000"
tcAlias = "v_Myview"

The concatenation above gives you the following:

select * from MyTable where MyField > 50000 into cursor v_MyView

The macro substitution line executes the command as if you typed it in and hit Enter. The SQL select is executed and builds a cursor in the current datasession.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform