AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Controles, páginas y ventanas / Funciones de cadenas gráficas
  • Activation/Deactivation
  • ListSeek function
  • Auto-filled combo boxes
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Otros
Procedimientos almacenados
Allows (or not) to retrieve the value defined by gStoredValue in a List Box control or in a Combo Box control.
Remark: This function is equivalent to gLinkActivate.
Ejemplo
// Le champ Combo "COMBO_Civilité" affiche les titres de civilité:
// "Monsieur", "Madame" et "Mademoiselle".
// Un entier représentant une civilité sera retourné au langage.
ListAdd(COMBO_Civilité, "Monsieur" + gStoredValue("1"))
// Seule la chaîne de caractères "1" est retournée au langage.
// Cette chaîne de caractères retournée n'est pas affichée dans le champ Combo.
// Autoriser la récupération de la valeur définie par la fonction gValeurMémorisée.
gStoredValueEnable(COMBO_Civilité, True)
Sintaxis
<Result> = gStoredValueEnable(<List Box or Combo Box control> [, <Enabled>])
<Result>: Boolean
Corresponds to the former management mode:
  • True if the value defined by gStoredValue was retrieved (default value),
  • False otherwise.
<List Box or Combo Box control>: Control name
Name of the List Box or Combo Box control to be used.
<Enabled>: Optional boolean
  • True if the value defined by gStoredValue must be retrieved (default value),
  • False otherwise.
Observaciones

Activation/Deactivation

  • If the values defined with gStoredValue are retrieved from the COMBO_COMBO1 control (<Active> = True):
    COMBO_COMBO1.Value returns the order number in the COMBO_COMBO1 control.
    COMBO_COMBO1[COMBO_COMBO1] returns the value of gStoredValue.
  • If the retrieval of values defined by gStoredValue is disabled on the COMBO_COMBO1 control (<Active> = False):
    COMBO_COMBO1.Value returns the order number in the COMBO_COMBO1 control.
    COMBO_COMBO1[COMBO_COMBO1] returns the current displayed value.
    • If the COMBO_COMBO1 control is bound to an item:
      • FileToScreen selects the row whose rank is equal to the bound item.
      • ScreenToFile assigns the number of the selected element to the bound HFSQL item, i.e., ListSelect(COMBO_COMBO1).

ListSeek function

  • If gStoredValueEnable()=True, ListSeek takes the values added by gStoredValue into account. The search is performed on the stored value.
  • If gStoredValueEnable()=False, ListSeek ignores the values added by gStoredValue. The search is performed on the displayed value.

Auto-filled combo boxes

gStoredValueEnable is used to manage "Auto-filled Combo Box" controls.
Componente: wd290obj.dll
Versión mínima requerida
  • Versión 27
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 19/12/2023

Señalar un error o enviar una sugerencia | Ayuda local