Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Macro substitution
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00984562
Message ID:
00984569
Views:
23
This message has been marked as a message which has helped to the initial question of the thread.
Bernhart,

Store the sqlstatement to a string, I prefer to use the TEXTMERGE command for sqlcommands because it is easier to maintain, then use the EVAL() function to execute the text string.
cFolderData = "MYCUSTOMER"

TEXT TO lcSqlString TEXTMERGE NOSHOW
CREATE SQL VIEW COMPAN ;
  REMOTE CONNECTION "AmlineBobConnection"  AS SELECT * FROM <<cFolderData>>
ENDTEXT  

EVALUATE(lcSqlString)
Kurt
>Hi all,
>
>
>
>
>cFolderData = "MYCUSTOMER"
>CREATE SQL VIEW "COMPAN" ;
>  REMOTE CONNECT "AmlineBobConnection" AS SELECT * FROM ( cFolderData cFolderData  )
>
>
>I HAVEC a error...
>What is the good syntax ?
>
>Thank in advance for the answer...
>
>
>bernhart
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform