FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
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
Connectez-vous…
KingDr8
#1
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.
Signaler
0
0
Piet van Zanten
#2
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.
Signaler
0
0
→ Revenir à WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (précédentes versions)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte