Apparently the root of this error was that I had Basic.WinCE.exe installed
instead of Basic.WM.exe. Changing this got rid of the 126 error. Things are
now improving.
Next Problem
Sub CEF030_Load
AddObject "newObjects.utilctls.SFMain", "fs"
filename = "\Documents and Settings\AcuTrack\pdaPickList.txt"
file = fs.OpenFile(filename)
loadListBox
End Sub
I get error "object doesn't support this property or method:'file'"
This is a normal .txt file which notepad and explore on the PDA can display.
What does this error mean?
Thanks
-----Original Message-----
From: [email protected] [mailto:[email protected]] On
Behalf Of George Henne
Sent: Friday, February 26, 2010 9:16 AM
To: [email protected]
Subject: Re: [nsbasic-ce] Re: help with fileSystem error
When do you get this error?
You are correct - there was an error in the samples in Tech Note 9. It
has been corrected.
>NO luck.
>
>OK I'm trying to use new file system.
>
>Sub CEF030_Load
>
> ' clipped from example tech note 9
> AddObject "newObjects.utilctls.SFMain", "Main"
> filename = "\My Documents\AcuTrack\pdaPickList.txt"
> myExtensionName = FS.GetExtensionName(filename) 'result is ".txt"
> MsgBox myExtensionName
>
>End Sub
>
>I get error 126, so I still have some setup error. Help appreciated.
>And should not myExtensionName = Main.GetExt......??
>
>
>--- In [email protected], "joespan123" <j...@...> wrote:
>>
>> Hi,
>>
>> Try adding the "filesystem" and "file" object outside of the Load event.
>>
>> Add it as first line in your global code.
>>
>> Cheers
>> Joe
>>
>> --- In [email protected], "georgeewalters" <gwalters@> wrote:
>> >
>> > Using this code
>> >
>> > Sub CEF030_Load
>> > AddObject "filesystem"
>> > AddObject "file"
>> > filename = "\My Documents\pdaPickList.txt"
>> > file.Open filename,4,3,3,124 'direct, read/write, locked, reclen
>> > End Sub
>> >
>> > I get an AddObject error:
>> >
>> > Could not create non-visual control ("filesystem") because
>IClassFactory coult not be obtained.
>> >
>> > I must have something setup wrong or missing on this new iPAC 211(WM
>5.2). Any help would be appreciatied.
>> >
>>
>
>
>
>
>------------------------------------
>
>Yahoo! Groups Links
>
>
>
------------------------------------
Yahoo! Groups Links
--
You received this message because you are subscribed to the Google Groups
"nsb-ce" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/nsb-ce?hl=en.