AW: AW: AW: why can't I create a folder with a variable?
Tiemo Hollmann TB
toolbook at kestner.de
Tue Aug 21 07:46:10 EDT 2007
Great, thank you Mark
Tiemo
> -----Ursprüngliche Nachricht-----
> Von: use-revolution-bounces at lists.runrev.com [mailto:use-revolution-
> bounces at lists.runrev.com] Im Auftrag von Mark Smith
> Gesendet: Dienstag, 21. August 2007 12:38
> An: How to use Revolution
> Betreff: Re: AW: AW: why can't I create a folder with a variable?
>
> Exactly. I have a handler in my library:
>
> on createPath pPath
> set the itemDelimiter to "/"
> repeat with n = 1 to the number of items in pPath
> if item n of pPath is not empty AND there is no folder (item 1
> to n of pPath) then
> create folder (item 1 to n of pPath)
> end if
> end repeat
> end createPath
>
> You may want to add error-checking and so-on, but it works well enough.
>
> Best,
>
> Mark
>
> On 21 Aug 2007, at 10:28, Tiemo Hollmann TB wrote:
>
> > Hi Mark,
> > Thanks for the hint, probably that has been the reason, now I can't
> > reproduce my problem anymore. I didn't knew that.
> > That means, if a user input gives me a full path to create a new
> > folder, I
> > have to check and create recursive the path, level by level, right?
> > Thanks
> > Tiemo
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list