|
Post by newman2007 on Sept 28, 2007 15:35:45 GMT -5
I am a novice at programming .... just started with Liberty basic ... when I try to run my code ... I get error code 91
As follows
Error number 91 Object variable or With bloack variable not set in sub FinishLoad
Please help
Thanks in advance
|
|
|
Post by Alyce Watson on Sept 29, 2007 19:29:35 GMT -5
What do you do that causes this error? There's a known bug if you associate BAS files with LBW on some versions of Windows. Please explain the steps you take that cause this error, and which version of LBW causes it. Thanks.
|
|
|
Post by newman2007 on Sept 30, 2007 4:20:04 GMT -5
Thanks for your response. I use the latest version 4.91 I get this error whenever I try to run my code.
What should I do to overcome this problem ?
|
|
|
Post by Alyce Watson on Sept 30, 2007 6:25:00 GMT -5
Thanks for your response. I use the latest version 4.91 I get this error whenever I try to run my code. What should I do to overcome this problem ? I'm confused. The description, "in sub FinishLoad" tells me exactly where the error occurs in the LBW code. The sub "FinishLoad" is only invoked when LBW starts up, and no other time. It is not invoked when you attempt to run code that appears in an edit window of LBW. I'd expect that error to appear if you've associated files of BAS type with LBW and click on a file name in Windows Explorer to open it, or if you drag a file onto the LBW icon or a running instance of LBW. There's no way that sub can be invoked once LBW is running... only at start up. Have you been able to run LBW (not your code, just the LBW program) in the past? Did you set the path to liberty.exe in your preferences? Since you are a novice to programming, you might want to stick with the Liberty BASIC editor for a while to limit confusion about the source of errors. I'll try to figure this out and I'll let you know if there's a bug I can fix. Windows can be very peculiar in that an app that works perfectly on one version of Windows might generate errors on another version, and I don't have every possible version of Windows available for testing purposes. Thanks.
|
|
|
Post by newman2007 on Sept 30, 2007 9:41:49 GMT -5
Thanks a lot for the prompt reply. I may have associated a file when I first ran the program and wrote a code. I s there a way to undo the association ?
I run Windows XP SP2. I tried another version 4.03 on my office computer and it it does not crop the error caused by version 4.91
If there is no solution I will have to change to Version 4.03.
Thanks in advance.
|
|
|
Post by Alyce Watson on Sept 30, 2007 15:58:08 GMT -5
Thanks a lot for the prompt reply. I may have associated a file when I first ran the program and wrote a code. I s there a way to undo the association ? Yes, but you must do it in Windows. In My Computer -> Tools -> Folder Options, choose the file types tab and edit the extension BAS so that it opens with Liberty.exe, Notepad, or the application of your choice. Version 4.03 is Liberty BASIC itself. Liberty BASIC Workshop is a separate application. The only version available is 4.9.1. Since you are new to Liberty BASIC, I suggest you stick with the Liberty BASIC editor for now to avoid confusion. Good luck! Be sure to stop by the forum: libertybasic.conforums.com/
|
|