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


> >
> > "The MoverBars property is available only if the RowSourceType property is set to 0 (None) or 1 (Value)."
> >
> > Respectfully
>
>
> 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?
> http://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

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