Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listbox to somewhere, anywhere...
Message
From
28/12/2001 09:24:17
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Listbox to somewhere, anywhere...
Miscellaneous
Thread ID:
00598768
Message ID:
00598768
Views:
61
I now am LEARNING this object stuff.
Boy it is confusing me.

Problem:
Have figured out how to populate a list box with Files that I want to select.
That is an unusual looking interface to be sure (type-7). When I set the DblClick method to do my bidding I have a real problem getting anything back out.This has probably been answered a million times before and I dont know how to search it, but here goes.

My simple code

with this

testvar = .displayvalue
messagebox(testvar,4,"test")
text1.text = .displayvalue
endwith

This has got to be something funny about objects.
Text1 of course is the textbox in the form and List1 is the listbox.
My messagebox works fine so I can get the file name (will work on path later)
but the text1 always is not found.

Is the object of listbox saying I cant SEE the textbox and maybe I have to reference it a little differently?

I know doing this in VB (which I cant use here) has its own builtin Disk selector and drive selector etc in the common controls but I dont see them in Fox. Also found out there is something wrong with Component Gallery it says bad index all the time and comes up some of the time.

Thank you for any advice on clearing up "what should be simple im just not seeing it."

Tom
GO Canucks!! (Vancouver Canucks Fan)
Next
Reply
Map
View

Click here to load this message in the networking platform