Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mkdr Command
Message
From
23/04/2005 15:57:09
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 6
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MySQL
Miscellaneous
Thread ID:
01007755
Message ID:
01007825
Views:
11
>Hi,
>
>Im creating a directory programmatically but it creted only the first words.
>How to overcome this?
>
>Here is my code below.
>
>
cBranch_name = "Test Shop"
>MD &cBranch_name
>
>
>This code create only a folder "Test" and not my expected "Test Shop"
>Im saving the Shop Name to a configuration table and it will save also as "Test"
>Any suggestions? Am I missing something?
>Thanks.

The reason it doesn't work is because:
md &cBranch_name
gets replaced with:
md Test Shop
... which, as you can easily verify, ignores everything after the first parameter.

The following also works:
MyDir = ["xxx yyy"]
md &MyDir
(quotation marks included as part of the variable filename), but I recommend the parentheses.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform