Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Working with the collection class
Message
De
24/05/2005 13:05:51
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01017111
Message ID:
01017146
Vues:
23
>>>Hi everybody,
>>>
>>>I'm not sure, how can I add items to the collection based on their TabOrder in the form.
>>>
>>>Here is my current code, I'd like to modify it to put controls in the TabOrder sequence. How should I do it?
>>>
>>>
>>>*---------------------- Location Section ------------------------
>>>*   Library: 	Aformssearch.vcx
>>>*   Class: 		Frmquicksearch
>>>*   Method: 	Registercontrols()
>>>*----------------------- Usage Section --------------------------
>>>*)  Description:
>>>*)
>>>
>>>*   Scope:      Public
>>>*   Parameters:
>>>*$  Usage:
>>>*$
>>>*   Returns:
>>>*--------------------- Maintenance Section ----------------------
>>>*   Change Log:
>>>*       CREATED 	05/20/2005 - NN
>>>*		MODIFIED
>>>*----------------------------------------------------------------
>>>lparameters tcClassName, tcNamedSearch
>>>
>>>with thisform.oSearchCollection
>>>	if .getkey(m.tcNamedSearch) = 0
>>>		.add(m.tcClassName, m.tcNamedSearch)
>>>	endif	
>>>endwith
>>>
>>>
>>>
>>>My container object has a name of "o" + m.tcNamedSearch and it's placed directly on the form.
>>>
>>>Thanks in advance.
>>
>>
>>with thisform.oSearchCollection
>>   * here exists a bug, and Getkey can return .T.
>>   * workaround: retry getkey(), none bug for the second call
>>    if EMPTY(LEN(.getkey(m.tcNamedSearch)))
>>		.add(m.tcClassName, m.tcNamedSearch)
>>    endif	
>>endwith
>>
>
>Hi Fabio,
>
>I'm not sure which bug you have in mind, but you also didn't answer my question. How exactly can I specify in which order I want to add containers to the collection?
>
>I want to be able to set focus to the first container (its inner control)

Add() have eBefore, eAfter parameters
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform