DISCOMBO

Contents


Discombo deactivates the selections in a combo box.

 

Syntax

Discombo selection_list From field_id

 

Parameters

Element

Description

Restrictions

selection_list

List of the selections to be deactivated, separated by a comma (,)

field_ID

Identification of a field in one of the following formats:
nom_de_variable
nom_de_variable '('exp_ind')'

The fields for which the name is given must be defined in the corresponding screen.

ind_exp

Whole number for which the value is the index of the variable to be displayed

The index must be in the interval defined by the repetition factor.

 

Examples

# Example 1:
# Deactivation of the values 3 and 4 of the local menu associated with the BPCTYP field

########################################
Subprog AS_BPCTYP(VALEUR)
Variable Integer VALEUR
Discombo 0 From BPCTYP
Discombo 3,4 From BPCTYP
End

 

# Example 2:
# Deactivation of the values 3 and 4 of the local menu associated with the BPCTYP field
# Utilization of the Global GMENLOC variable

########################################
Subprog AS_BPCTYP(VALEUR)
Variable Integer VALEUR
Raz GMENLOC
GMENLOC(3)=1
GMENLOC(4)=1
End

########################################
Subprog AP_BPCTYP(VALEUR)
Variable Integer VALEUR
Raz GMENLOC
End

 

Description and Comments

Discombo deactivates the selections in a combo box. The field on which the Discombo is applied is of the local menu type.

Discombo 0 reactivates all of a combo box's selections.

 

This instruction is especially used by the supervisor.

It is preferable to set the GMENLOC(i) variable to one (1) to deactivate the i selection (Example 2). In this case, the supervisor controls the execution of the corresponding Discombo instruction.

 

Associated Errors

Error

Description

 

 

 

Associated Keywords


CONTENTS


Copyright © Sage 1999 - 2007