advr.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
FileName Property Details
  ◄Summary►  ◄Details►  ◄Example►                ◄Contents►  ◄Index►  ◄Back►
──────────────────────────────────────────────────────────────────────────────
 [form.][filelistbox.]FileName[ = filename$]
 
 Usage Notes
   ■ At run time, this property returns the currently selected file name
     from the list. The path is retrieved separately, using the Path
     property. This returned value is functionally equivalent to:
 
         List(ListIndex)
 
     See: ◄List Property►  ◄ListIndex Property►  ◄Path Property►
 
   ■ When writing to this property:
     • Including a drive, path, or pattern in the string changes the Drive,
       Path, and Pattern properties accordingly.
     • Including the name of an existing file (without wildcard characters)
       in the string selects the file.
 
   ■ Changing the value of this property may also cause one or more of these
     events:
 
         Action                           Event
         ════════════════════════════     ══════════════════════════════════
         Change the path                  PathChange
         Change the pattern               PatternChange
         Enter an existing file name      DblClick
 
     See: ◄DblClick Event►    ◄Drive Property►    ◄Path Property►
          ◄PathChange Event►  ◄Pattern Property►  ◄PatternChange Event►