FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WINDEV 2024
→
Dynamically assign Variable to a Edit Control name in code
Dynamically assign Variable to a Edit Control name in code
Débuté par ahmad abbas, 20 fév. 2018 19:38 - 2 réponses
Connectez-vous…
ahmad abbas
#1
Posté le 20 février 2018 - 19:38
Details of the request:
I have an edit controls called EDT_Prompt1_Desc EDT_Prompt2_Desc ,EDT_Prompt3_Desc etc.. until 9
In the code i need to Save parameters form these control using a For Loop
SWITCH MNum
CASE "11"
FOR i = 11 TO 14
//Menu 1
FOR h = 1 TO 9
gclMyconnect.WriteTransaction(gsTranslist,"EDT_SMChoice"+MNum,"Description",EDT_Prompt1_Desc..Value)
Is it possible to make the value 1 replace with value 4 as it did for the String variable "EDT_SMChoice"+MNum,"
Signaler
0
0
Fabrice Harari
#2
Posté le 21 février 2018 - 11:36
Hi
Yes it is...
look at 'indirection' in the help...
Best regards
--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting
Ready for you: WXShowroom.com, WXReplication (open source) and now WXEDM
(open source)
More information on
http://www.fabriceharari.com
Le 2/20/2018 à 1:38 PM, ahmad abbas a écrit :
Details of the request:
I have an edit controls called EDT_Prompt1_Desc EDT_Prompt2_Desc
,EDT_Prompt3_Desc etc.. until 9
In the code i need to Save parameters form these control using a For Loop
SWITCH MNum
CASE "11"
FOR i = 11 TO 14 //Menu 1
FOR h = 1 TO 9
gclMyconnect.WriteTransaction(gsTranslist,"EDT_SMChoice"+MNum,"Description",EDT_Prompt1_Desc..Value)
Is it possible to make the value 1 replace with value 4 as it did for
the String variable "EDT_SMChoice"+MNum,"
Signaler
0
0
Joey Dieleman
#3
Membre enregistré
28 messages
Popularité : +2 (2 votes)
Posté le 21 février 2018 - 11:40
I am not sure wat you meen but I guess indirection?
You can use:
{
"EDT_Prompt"
+
MNum
+
"_Desc"
,
indControl
}
..
Value
Signaler
1
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