vb.net file system object not available

Discussion in 'Software' started by unclematty, Apr 22, 2004.

  1. unclematty

    unclematty Private First Class

    Could you please tell me what i have to do to be able to use the filesystemobject in my project?

    For instance, this code...
    Code:
    Dim fso As New FileSystemObject
    'The selected drive
    Dim strDrive As String
    'The folderpath
    Dim strFolder As String
    'Collection to store the selected filepa
    ' ths
    
    after typing New, 'FileSystemObject' is not offered like many others. Is there somehing I must do to be able to use this object?

    Thanks,
     
  2. Kodo

    Kodo SNATCHSQUATCH

    make sure you import the system.io namespace
     
  3. unclematty

    unclematty Private First Class

    thanks. that was it.

    now what about searching through strings? do you know the function? for instance something like this..

    searchstring(string, "characters")

    Thanks again
     
  4. unclematty

    unclematty Private First Class

    instr(), i think that is the function i need to use. how does it work
     
  5. unclematty

    unclematty Private First Class

    sorry for all the replies. i got what i was looking for, right()
     
  6. jawpaul

    jawpaul Private E-2

    I use the strString.IndexOf("characters") in VB.Net
    I have only used it for one charachter though.
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds