Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Functionality like in VFP modify table screen
Message
 
 
To
17/09/2003 00:04:37
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00829680
Message ID:
00829808
Views:
24
This message has been marked as the solution to the initial question of the thread.
Hi Dennis,

Here's a sample code that shows how to do that.
PUBLIC oform1

oform1=NEWOBJECT("form1")
oform1.Show
RETURN

DEFINE CLASS form1 AS form


	Top = 0
	Left = 0
	DoCreate = .T.
	Caption = "Form1"
	Name = "Form1"

	ADD OBJECT list1 AS listbox WITH ;
		Height = 229, ;
		Left = 12, ;
		Top = 12, ;
		Width = 349, ;
		MoverBars = .T., ;
		Name = "List1"

	PROCEDURE list1.Init
		OPEN DATABASE (HOME(2) + "\DATA\testdata")
		USE products
		SCAN 
			THIS.AddItem(eng_name)
		ENDSCAN
	ENDPROC
ENDDEFINE
>Thanks, Sergey.
>
>I'm going to have to stop by Wayne (where I lived for a year)
>one of these days and buy you lunch.
>
>I see the use of the listbox, but I don't catch how to use the AddListItem method is used to get the fields I want to show from my table into the list.
>
>Have you seen a simple example. I've searched the KB without any success.
>
>Thanks again,
>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform