Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Pete Sass
  Where is Pete Sass?
 Marathon, Ontario
 Canada
 Pete Sass
 To: Vilhelm-Ion Praisach
  Where is Vilhelm-Ion Praisach?
 Resita
 Romania
 Vilhelm-Ion Praisach
 Tags
Subject: RE: ListBox I Guess I am Stupid
Thread ID: 416505 Message ID: 416553 # Views: 34 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Classes and Objects
Date: Tuesday, December 30, 2014 11:32:48 PM         
   


> >
> >
> > Hi,
> >
> > So I guess this means you cannot bind the listbox to an array of cursor then?
> > as if this property set to 0 or 1 no records will show I think?
> >
> > Read my thread back to Koen and can you confirm what I am
> > trying to do is impossible?
> > https://www.foxite.com/archives/0000416533.htm
> >
> > Pete "the IceMan", from the Great White North of Canada.
> > www.marathongriffincomputers.com
>
> Unfortunately, I guess you can't.
>
> But you can get the current order and update the table / array
>
>
PUBLIC ofrm
> ofrm = CREATEOBJECT("myform")
> ofrm.show()
> 
> DEFINE CLASS myform as Form
> 	ADD OBJECT lst as listbox WITH moverbars = .T.
> 	ADD OBJECT cmd as commandbutton WITH left = 200,caption = 'Order'
> 	PROCEDURE init
> 		This.lst.additem('One')
> 		This.lst.additem('Two')
> 		This.lst.additem('Three')
> 		This.lst.additem('Four')
> 	ENDPROC
> 	PROCEDURE cmd.click
> 		FOR lni = 1 TO ThisForm.lst.ListCount
> 			MESSAGEBOX(ThisForm.lst.List[lni])
> 		NEXT
> 	ENDPROC
> ENDDEFINE

>
>
> Respectfully


Hi Vilhelm,

Yes that is exactly where I am going now.

The shame about this irritation if you look up help on this one . . .

Visual FoxPro 9.0 SP2
How to: Choose the Type of Data for a List or Combo Box
Nowhere did I see any mention that the MoverBars would disable themselves
using an array to populate the ListBox.


However, if you drill down into properties and specifically look at this one below . . .
Visual FoxPro 9.0 SP2
MoverBars Property
"The MoverBars property is available only if the RowSourceType property is set to 0 (None) or 1 (Value)."

Fist time I have ever used the MoverBar property in many years of programming in VFP. Just never came up
and I got burnt for most of the day on this one lol

The other thing that totally threw me on this one is a comprehensive tutorial on create an array from
a table and populating the ListBox via the array and then the tutorial goes on to say now you can set
MoveBars = .T. with RowSourceTyoe = 5 and images of moving the rows around with the MoverBars showing.
Obviously this article was a figment of someone imagination.

Pete "the IceMan", from the Great White North of Canada.
www.marathongriffincomputers.com

ENTIRE THREAD

ListBox I Guess I am Stupid Posted by Pete Sass @ 12/30/2014 3:04:48 PM
RE: ListBox I Guess I am Stupid Posted by Vilhelm-Ion Praisach @ 12/30/2014 4:23:19 PM
RE: ListBox I Guess I am Stupid Posted by Pete Sass @ 12/30/2014 8:17:26 PM
RE: ListBox I Guess I am Stupid Posted by Vilhelm-Ion Praisach @ 12/30/2014 10:26:08 PM
RE: ListBox I Guess I am Stupid Posted by Pete Sass @ 12/30/2014 11:32:48 PM
RE: ListBox I Guess I am Stupid Posted by Koen Piller @ 12/30/2014 6:52:38 PM
RE: ListBox I Guess I am Stupid Posted by Dan Baker @ 12/30/2014 7:21:12 PM
RE: ListBox I Guess I am Stupid Posted by Pete Sass @ 12/30/2014 8:31:47 PM
RE: ListBox I Guess I am Stupid Posted by Jun Tangunan @ 12/31/2014 12:15:06 AM
RE: ListBox I Guess I am Stupid Posted by Koen Piller @ 12/31/2014 5:22:13 PM