Last time, I asked this question:

>> What is in pIniFileName?

>Hi George,
>
>I modified the example project "FileIO.nsb" adding a button to copy the
>working text file.
>
>I just added a button on the form, and on the event "click" I added the
>following:
>
>Sub CopyButton_Click
>   MsgBox TypeName(fs) & ", " & fileName & ", " & fileName2
>   
>   If Not fs.fileExists(FileName) Then
>      txtMsg.text = "File does not exists" & vbCrLf & txtMsg.text
>   Else
>      fs.CopyFile fileName,filename2
>      txtMsg.text = "File copied" & vbCrLf & txtMsg.text
>   End If
>End Sub
>
>
>Simply add the button and code to FileIO.nsb (or I can send the modified
>one), press the buttons to create the file, and press the button to add
>1000 records.    Then try to copy the file.   
>
>After the MsgBox I get the reported error.
>
>The MsgBox returns:
>  ISFMain, MyFile.txt, MyFile2.txt
> 
>
>Right now I'm working around it by using Microsoft's File object to
>copy.   However it would be nice to fix this problem.
>
>Best regards,
>Edgard
>
>
>
>--- In [email protected], "George Henne" <gh@...> wrote:
>>
>> OK, so the object is being created properly.
>> 
>> What is in pIniFileName?
>> 
>> >It returns "ISFMain"
>> >
>> >
>> >--- In [email protected], "George Henne" <gh@> wrote:
>> >>
>> >> What happens if you do MsgBox TypeName(FS)?
>> >> 
>> >> Let's see if the object is created properly.
>> >> 
>> >> >Hi George,
>> >> >
>> >> >Thanks for looking into this.
>> >> >
>> >> >I've tried various ways and I always get the error.
>> >> >
>> >> >I also changed FileIO.nsb by adding another button to use "CopyFile",
>> >> >and I get the same error there.
>> >> >
>> >> >Let me know if you want the FileIO.nsb so you can test it.
>> >> >
>> >> >Best regards,
>> >> >Edgard
>> >> >
>> >> >--- In [email protected], "George Henne" <gh@> wrote:
>> >> >>
>> >> >> Is the file "tmp.ini" present in root (\)? You need to give full
>> >> >> pathnames to files in Windows CE.
>> >> >> 
>> >> >> >Hi,
>> >> >> >
>> >> >> >I'm trying to copy a text file from the device to the storage
card.  
>> >> >> >The line of code is:
>> >> >> >
>> >> >> >   FS.CopyFile "tmp.ini",pIniFileName,1
>> >> >> >
>> >> >> >I'm getting the following error:
>> >> >> >
>> >> >> >Microsoft VBScript runtime error - line 1198, char 3
>> >> >> >File name of class name not found during Automation operation
>> >> >> >
>> >> >> >
>> >> >> >I know the FileStream object is working because I previously
>use other
>> >> >> >methods... for example I create the "tmp.ini" file with it:
>> >> >> >
>> >> >> >   Set tmpFile = FS.CreateFile("tmp.ini")
>> >> >> >
>> >> >> >And this code is working.
>> >> >> >
>> >> >> >I have NSBasic 8.2.0a on the desktop.   On the device NSBasic
reports
>> >> >> >being version 8.0.0 on the device's nsbasic editor "About
NSBasic/CE"
>> >> >> >menu option.   I doubt this has anything to do with the "CopyFile"
>> >> >> >problem, but I thought I'd mention it just in case.
>> >> >> >
>> >> >> >Thanks,
>> >> >> >Edgard
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> >------------------------------------
>> >> >> >
>> >> >> >Yahoo! Groups Links
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >>
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >------------------------------------
>> >> >
>> >> >Yahoo! Groups Links
>> >> >
>> >> >
>> >> >
>> >>
>> >
>> >
>> >
>> >
>> >------------------------------------
>> >
>> >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.

Reply via email to