GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEV
,
WEBDEV
e
WINDEV Mobile
Inicio
|
Mensagens recentes
|
Conecte-se...
|
Disconnect
|
Português
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
Conecte-se…
KingDr8
#1
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.
Denunciar
0
0
Piet van Zanten
#2
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.
Denunciar
0
0
→ Voltar para WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (versões anteriores)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Tipo de Pesquisa
Apenas tópicos
Todas as mensagens
Período de pesquisa
Qualquer momento
Última hora
Últimas 24 horas
Semana passada
Mês passado
Ano passado
Cancelar
Pré-visualização da sua mensagem
Adicionar imagem
Importar uma imagem de uma URL
Enviar uma imagem a partir do seu disco
Deixe um ficheiro ou clique em "Procurar ..."
ou
Cancelar
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Texto