Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Another ComboBox Question......
Message
From
06/11/1997 11:07:02
 
 
To
06/11/1997 10:28:00
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00058592
Message ID:
00058604
Views:
25
>Question:
>I have a ListBox on a form. I have set the RowSourceType to 7 and the RowSource to '*.DBF'. When clicking on the listbox to change directories and select files everything works fine. When the listbox loses focus, I lose the directory I was in prior to moving off of this control. Is there a way that I can SET DEFAULT TO according to the directories that I choose in the ListBox???? I notice that when I do change dirs in the list, the object.value is always [..] unless I choose a file. I am trying to select multiple filenames from my drives and place them in a list of another ListBox. This portion I have right, but what next???? I think it's awkward to have to reselect the drive that I want to use everytime.

You could make a trick:
*** Form Init event
this.curdir=curdir()
*** Listbox Init event
this.tag=curdir()
*** ListBox Lostfocus event
local cPath
cPath=thisform.curdir
set defa to &cPath.
this.tag=this.list(2)
*** ListBox Gotfocus event
local cPath
cPath=this.tag
set defa to &cPath.
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform