FOROS PROFESIONALES
WINDEV
,
WEBDEV
y
WINDEV Mobile
Inicio
|
Mensajes recientes
|
Conéctese...
|
Desconectar
|
Español
Inicio
→
WINDEV 2024
→
Re: Hfilter/selection condition with variables
Re: Hfilter/selection condition with variables
Iniciado por KingDr8, 02,feb. 2004 18:07 - 1 respuesta
Conéctese…
KingDr8
#1
Publicado el 02,febrero 2004 - 18:07
Hi Wim,
You also have to put:
ConditionStr="NAME>=" + Var_name
instead of ConditionStr="NAME>=Var_name" because Var_name is an not item
in CUSTOMER.
Smile!
King
Hi Wim,
Possible!
You have to a single quote for John i.e.
Var_Name="'John'"
If CUSTOMERNR is not an index key, you also get an error as stated from yr msg.
Regs,
King
Is it possible in one way or another to use variables in a selection condition of HFilter?
Here is a simplified example of what I would like to do:
(NAME and CUSTOMERNR are fileitems of the file CUSTOMER)
ConditionStr is string
Var_name is string
Var_Name="John"
ConditionStr="NAME>=Var_name"
Hfilter(CUSTOMER,CUSTOMERNR,0,9999999,ConditionStr)
In this example Windev generates a bug 'item' not found.
Informar
0
0
Piet van Zanten
#2
Publicado el 06,febrero 2004 - 15:21
Hi Wim,
Actually, you also have to use quotes for non-numeric items:
ConditionStr="NAME>='" + Var_name +"'"
Regards,
Piet
Hi Wim,
You also have to put:
ConditionStr="NAME>=" + Var_name
instead of ConditionStr="NAME>=Var_name" because Var_name is an not item
in CUSTOMER.
Smile!
King
Hi Wim,
Possible!
You have to a single quote for John i.e.
Var_Name="'John'"
If CUSTOMERNR is not an index key, you also get an error as stated from yr msg.
Regs,
King
Is it possible in one way or another to use variables in a selection condition of HFilter?
Here is a simplified example of what I would like to do:
(NAME and CUSTOMERNR are fileitems of the file CUSTOMER)
ConditionStr is string
Var_name is string
Var_Name="John"
ConditionStr="NAME>=Var_name"
Hfilter(CUSTOMER,CUSTOMERNR,0,9999999,ConditionStr)
In this example Windev generates a bug 'item' not found.
Informar
0
0
→ Volver a WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (versiones precedentes)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Búsqueda Tipo
Sólo temas
Todos los mensajes
Periodo Buscar
Cualquier fecha
Última hora
Última 24 horas
Última semana
Último mes
Último año
Cancelar
Vista previa del mensaje
Añadiendo una imagen
Importar una imagen desde una URL
Enviar una imagen desde un archivo de su disco
Arrastrar un archivo o click en "Examinar..."
o
Cancelar
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Texto