Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using strings for alias
Message
 
To
23/03/2007 14:49:58
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01207902
Message ID:
01207915
Views:
21
>The code that I have inherited is full of things like
>
>USE myTable ALIAS myAlias
>
>and then code such as
>
>SELECT 'myAlias' ---- rather than SELECT myAlias
>REPLACE myField WITH myValue IN 'myAlias'
>etc.
>
>This doesn't seem to cause any problems, but I did find a problem with a similar construct
>
>SET PROCEDURE TO 'procdir\proc1','procdir\proc2'
>
>When the project builder came across this line it only pulled proc1 into the project while
>
>SET PROCEDURE TO 'procdir\proc1'
>SET PROCEDURE TO 'procdir\proc2' ADDITIVE

>
>and
>
>SET PROCEDURE TO procdir\proc1,procdir\proc2
>
>got both of them
>
>Are there any reasons to use strings (maybe it made it more clear to him) and does anybody know of any other gotchas from using them?
>
>Thanks......Rich

Rich in help
SET PROCEDURE TO [FileName1 [, FileName2, ...]] [ADDITIVE]

and IMO all is OK with
SET PROCEDURE TO procdir\proc1,procdir\proc2
and you can try
SET PROCEDURE TO ('procdir\proc1'),('procdir\proc2')
_______________________________________________________________
Testing displays the presence, not the absence of bugs.
If a software application has to be designed, it has to be designed correctly!
_______________________________________________________________
Vladimir Zografski
Systems Analyst
Previous
Reply
Map
View

Click here to load this message in the networking platform