New topic: Folderitem.LastErrorCode=101 and MoveFileTo
<http://forums.realsoftware.com/viewtopic.php?t=37349> Page 1 of 1 [ 3 posts ] Previous topic | Next topic Author Message Jordan Post subject: Folderitem.LastErrorCode=101 and MoveFileToPosted: Mon Jan 31, 2011 11:22 am Joined: Wed Jan 04, 2006 7:58 pm Posts: 519 Location: Tri-State Area (NJ, NY, CT) I must be really tired - admittedly, I'm not feeling great today ... According to this lastErrorCode, the msgBox should never show !! What gives? Click for large view _________________ http://www.kaliware.com Carbon Declare Library Contributor Top mjh Post subject: Re: Folderitem.LastErrorCode=101 and MoveFileToPosted: Mon Jan 31, 2011 11:59 am Joined: Sun Feb 19, 2006 3:10 pm Posts: 1068 Location: Hamburg, Germany Just to make sure that LastErrorCode cannot be accidentally reset, I would assign it to a local variable and refer to that, i.e. Code:f.MoveFileTo GetTemporaryFolderItem.Parent dim myLastErrorCode as Integer = f.LastErrorCode if myLastErrorCode > 0 and myLastErrorCode <> 101 then _________________ Michael J. HuÃmann http://digicam-experts.de Top markwalsh Post subject: Re: Folderitem.LastErrorCode=101 and MoveFileToPosted: Mon Jan 31, 2011 1:43 pm Joined: Wed May 20, 2009 4:43 pm Posts: 359 Jordan wrote:I must be really tired - admittedly, I'm not feeling great today ... According to this lastErrorCode, the msgBox should never show !! What gives? Click for large view Don't know if it has any bearing on your situation, but I always put parentheses around each part being compared just to be sure that the program is evaluating it the way I want it to: Code:if (myLastErrorCode > 0) and (myLastErrorCode <> 101) then I had come across an instance once where it was not evaluating a comparison the way I had intended, so I always like to explicitly separate each item. _________________ RB 2009r4 Windows XP Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 3 posts ]
-- 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]
