How to Get the Full Path from a List BoxID: Q148229 3.00 3.00b WINDOWS
The information in this article applies to:
SUMMARYThe ListBox control can display directories and file names from physical drives if the RowSourceType property is set to Files. The value property of the list box returns only the currently selected file or directory but not the full path. This article shows by example how to return the full path from a list box.
MORE INFORMATIONThe following sample code creates a form that contains a list box and a label that display the entire path to the selected file.
Sample Code**** Start of ListPath Program frmListPath = CREATEOBJECT("ListPath") frmListPath.Show READ EVENTS DEFINE CLASS ListPath AS Form ENDDEFINE
******End of Program
Additional reference words: 3.00 3.00b VFoxWin KBCategory: kbhowto KBSubcategory: FxprgClassoop
|
Last Reviewed: May 22, 1998 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |