Results 1 to 2 of 2

Thread: Max length of FileName property of Common Dialog Control

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2002
    Posts
    3

    Max length of FileName property of Common Dialog Control

    I am using common dialog control in my Project. I am working on VB 6.0.
    In my project I want to select multiple files in Common dialog control.
    So I am using 2 flags like this:-
    CommonDialog1.Flags = cdlOFNAllowMultiselect Or cdlOFNExplorer

    I am splitting the fileName returned from the control like this to get indivisual file names.
    fileNameArray = Split(CommonDialog1.fileName, vbNullChar)

    Now the problem is if I select some no. of files say 12, then if the filenames are too long then the filename is returned as NULL. ie. no file is selected. But if filenames are short it lets me select even 20-25 files at a time.
    So my question is what is the maximum no. of characters allowed in the filename property of common dialog control?
    Can anybody help me?

  2. #2
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629

    MaxFileSize Property

    CommonDialog1.MaxFileSize = 10000

    max = 32K, default = 256
    -= a peet post =-

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width