GetFolderItem

  1. 2 weeks ago

    Alexander v

    Feb 9 Europe (Houten, The Netherland...
    Edited 2 weeks ago

    What happened to GetFolderItem? I see it got deprecated, and now I have to use FolderItem.Constructor??

    If I want to read a file into a buffer what do I need to use now?

    Var theFile As FolderItem
    For Counter As Integer = 0 To FileListbox.RowCount-1
      theFile = New FolderItem(FileListbox.RowTagAt(Counter))

    gives:

    There is more than one method with this name but this does not match any of the available signatures.
    theFile = New FolderItem(FileListbox.RowTagAt(Counter))
  2. Alberto D

    Feb 9 Pre-Release Testers, Xojo Pro
    Edited 2 weeks ago

    I think RowTagAt uses Variant and FolderItem requires String. This is just a guess.

    Edit: change

    theFile = New FolderItem(FileListbox.RowTagAt(Counter))

    to

    theFile = New FolderItem(FileListbox.RowTagAt(Counter).StringValue)
  3. Kevin G

    Feb 9 Pre-Release Testers, Xojo Pro Gatesheed, England

    You possibly need to supply the path type / mode.

or Sign Up to reply!