PC SOFT

GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEVWEBDEV e WINDEV Mobile

Inicio → WINDEV 2024 → Re: Hfilter/selection condition with variables
Re: Hfilter/selection condition with variables
Iniciado por KingDr8, fev., 02 2004 6:07 PM - 1 resposta
Publicado em fevereiro, 02 2004 - 6:07 PM
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.
Publicado em fevereiro, 06 2004 - 3:21 PM
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.