Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID

Categories

We have migrated to a new platform! Please note that you will need to reset your password to log in (your credentials are still in-tact though). Please contact lee@programmersheaven.com if you have questions.
Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Faulty memory

dperusodperuso Posts: 55Member
A few years ago I created a VB program and now I'm trying to use a portion of the code in a new project, the problem is with "FileSystemObject", in the new code I get the error message "User-defined type not defined".
The way I was using it was as follows:
Dim Fso1 AS FileSystemObject
when I reload the old code after I type the "AS" I get a list box with the "FileSystemObject" as a choice, in the new code I don't.
I think I remember having to add somthing from the components list(not sure though, memory was the second thing to go).
The online documention only references the "CreateObject(xxxx)" way.

Please reply to my work email address dperuso@jamartech.com

Thanks in advance
Dave

Comments

  • infidelinfidel Posts: 2,900Member
    : A few years ago I created a VB program and now I'm trying to use a portion of the code in a new project, the problem is with "FileSystemObject", in the new code I get the error message "User-defined type not defined".
    : The way I was using it was as follows:
    : Dim Fso1 AS FileSystemObject
    : when I reload the old code after I type the "AS" I get a list box with the "FileSystemObject" as a choice, in the new code I don't.
    : I think I remember having to add somthing from the components list(not sure though, memory was the second thing to go).
    : The online documention only references the "CreateObject(xxxx)" way.
    :
    : Please reply to my work email address dperuso@jamartech.com

    Go to Project->References and select "Microsoft Scripting Runtime"


    [size=5][italic][blue][RED]i[/RED]nfidel[/blue][/italic][/size]

    [code]
    $ select * from users where clue > 0
    no rows returned
    [/code]

  • dperusodperuso Posts: 55Member
    : : A few years ago I created a VB program and now I'm trying to use a portion of the code in a new project, the problem is with "FileSystemObject", in the new code I get the error message "User-defined type not defined".
    : : The way I was using it was as follows:
    : : Dim Fso1 AS FileSystemObject
    : : when I reload the old code after I type the "AS" I get a list box with the "FileSystemObject" as a choice, in the new code I don't.
    : : I think I remember having to add somthing from the components list(not sure though, memory was the second thing to go).
    : : The online documention only references the "CreateObject(xxxx)" way.
    : :
    : : Please reply to my work email address dperuso@jamartech.com
    :



    I found it, it was hiding in the referances, I think it was "visual basic objects and procedures" I added quite a few of the VB stuff so I'll have to back trac to find out which one it was for sure. :)
    : Go to Project->References and select "Microsoft Scripting Runtime"
    :
    :
    : [size=5][italic][blue][RED]i[/RED]nfidel[/blue][/italic][/size]
    :
    : [code]
    : $ select * from users where clue > 0
    : no rows returned
    : [/code]
    :
    :

Sign In or Register to comment.