PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → Re: Hfilter/selection condition with variables
Re: Hfilter/selection condition with variables
Débuté par KingDr8, 02 fév. 2004 18:07 - 1 réponse
Posté le 02 février 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.
Posté le 06 février 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.