|
|
|
|
<Array>.Apply (Function) In french: <Tableau>.Applique Executes a procedure for each element of a WLanguage array.
arrCustomer is array of Customer arrCustomer.Apply(AddList) INTERNAL PROCEDURE AddList(pCustomer) LIST_Customer.Add(pCustomer.Name) END
Syntax
<Source array>.Apply(<Operation to perform>)
<Source array>: Control name Name of the Array variable to use. This array must be a one-dimensional array. <Operation to perform>: WLanguage procedure Name of the WLanguage procedure to be executed for each element of the <Source array>. This procedure can be: - a global or local procedure,
- an internal procedure.
It is also possible to directly use a lambda procedure. Remarks Operating mode The <Operation to perform> procedure is called for each element of the array. The procedure takes the current element as parameter. Not all the results of the calls are stored.
Sequence of functionsYou can use array functions in a sequence. The following functions can be used in a sequence: This sequence can be used as a source for a FOR ALL statement or it can end with one of the following functions: Example: gnMoyenne = gtabUser.Filtre(cbFiltre).Transforme(cbTransforme).Moyenne() Business / UI classification: Neutral code
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|