Hello,
I want to create a folder in specific path. The path-string I put with
some information from the item table together.
e.G.:
path := drive + '\' + TextVar1 + '\' + TextVar2 + '\' + TextVar3;
then I get an error when I use CreateFolder.
if I try this way...
path := 'c:\test';
...it works fine.
I think there is a problem with the '\'
btw I use Navision 4.0
Does anybody have an idea?
redStripe
Comments
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Try to use FORMAT('\');
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog
create "path := drive + '\' + TextVar1"
create "path := drive + '\' + TextVar1 + '\' + TextVar2"
create "path := drive + '\' + TextVar1 + '\' + TextVar2 + '\' + TextVar3;"
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
You can do it in one way with the filesystem-ocx ... but I don't think you want to use automation for this ... .
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog
sorry, I don't understand why it is not simple possible to put some strings
with + together?
If try to put some TextVars with + but without the '\' together
everything is fine.
](*,)
result := test1 + '\' + test2 + '\' + test3 + '\' + test4;
and the result is just fine in 4.0 and 4.0 SP1.
Which build do you have?
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog
Did you try to CreateFolder(result) ?
in my path-Var stands the right path, but if I try to use
CreateFolder ...it crashes