Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21226

[vbRichClient] How To...

$
0
0
I am starting this thread with a hope that all the users who are using vbRichClient will post all their queries here on this thread.

How to use cFSO?

I am trying to use the class cFSO present vbRC5 but I keep getting Error.

Here is the code:
Code:

Dim myFSO As vbRichClient5.cFSO
 
  Set myFSO = New cFSO      '<= VB complains with Invalid use of New Keyword
 
  Call myFSO.CopyFile("C:\Mytest.txt", "C:\MyTest001.txt")

If I comment out the second line I get the error 91 - Object variable or With block variable not set.

if I write like this:
Code:

Call vbRichClient5.cFSO.CopyFile("C:\Mytest.txt", "C:\MyTest001.txt")
I get error Method or member not found.

Can someone help solve this please.

TIA

Yogi Yang

Viewing all articles
Browse latest Browse all 21226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>