Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Functionality like in VFP modify table screen
Message
 
 
À
17/09/2003 00:04:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00829680
Message ID:
00829808
Vues:
25
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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform