Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Listbox Select All
Message
De
02/07/2000 13:13:34
 
 
À
02/07/2000 02:14:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00387235
Message ID:
00387561
Vues:
19
>I tested with a RowSourceType of 6-Fields. What code did you use to test this?

This:
oForm = create('testselall')
oForm.Show(1)
**************************************************
*-- Class:        testselall (i:\vfptest\testclasses.vcx)
*-- ParentClass:  form
*-- BaseClass:    form
*-- Time Stamp:   07/02/00 12:13:03 PM
*
DEFINE CLASS testselall AS form


	DoCreate = .T.
	Caption = "Form3"
	Name = "testselall"


	ADD OBJECT list1 AS listbox WITH ;
		RowSourceType = 1, ;
		RowSource = "a,b,c,d,e,f", ;
		Height = 145, ;
		Left = 66, ;
		MultiSelect = .T., ;
		Top = 42, ;
		Width = 193, ;
		Name = "List1"


	PROCEDURE list1.Init
		for lnI = 1 to this.listcount
			this.selected(lnI) = .T.
		endfor
	ENDPROC


ENDDEFINE
*
*-- EndDefine: testselall
**************************************************
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform