Announcement

Collapse
No announcement yet.

DISPLAY OPENFILE, multiple files

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • DISPLAY OPENFILE, multiple files

    Code:
    DISPLAY OPENFILE 0, 10, 10, "", "",  CHR$("BASIC", 0, "*.BAS;*.INC;*.BI;*.FRM;*.VBP;*.CLS", 0), _
                   "", "",%OFN_ALLOWMULTISELECT OR %OFN_FILEMUSTEXIST OR %OFN_SHAREAWARE OR %OFN_NONETWORKBUTTON TO gotfiles
    In this example, when multiple files are selected only the Path is returned to 'gotfiles'.
    The file names are not returned.
    How do I correct this?
    Rod
    I want not 'not', not Knot, not Knott, not Nott, not knot, not naught, not nought, but aught.

  • #2
    They are returned, but you must parse the string which uses CHR$(0) for field separators. If you are trying to view the string with, for example, a MSGBOX, only the path is returned, since it is the first field and the displayed string only reads to the null.
    Rick Angell

    Comment


    • #3
      Thanks, forgot about that feature of the msgbox.
      Rod
      I want not 'not', not Knot, not Knott, not Nott, not knot, not naught, not nought, but aught.

      Comment

      Working...
      X