New topic: Folderitem question.
<http://forums.realsoftware.com/viewtopic.php?t=34239> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message waveuponwave Post subject: Folderitem question.Posted: Fri Jun 11, 2010 5:09 pm Joined: Fri Jan 29, 2010 12:39 pm Posts: 301 Location: Virginia U.S.A. Is there a simpler way to code this without having to use so much code. I am sure there is a one line method. How do I code it? Thanks. Code: dim f as new folderitem f = GetFolderItem("C:\Program Files\miFolder\") if not (f.exists) then f.createasfolder end if f = GetFolderItem("C:\Program Files\miFolder\miItems") if not (f.exists) then f.createasfolder end if f = GetFolderItem("C:\Program Files\miFolder\miItems\Logs") if not (f.exists) then f.createasfolder end if _________________ RB2010r2 Pro on Win 7 I promise to help if I ever learn how to help myself. Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 1 post ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
