FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WINDEV 2024
→
WD24 Switch Control
WD24 Switch Control
Débuté par VEGEboss, 19 avr. 2019 19:32 - 3 réponses
Connectez-vous…
VEGEboss
#1
Membre enregistré
88 messages
Popularité : +2 (2 votes)
Posté le 19 avril 2019 - 19:32
it seems that it can return ONLY string value…
or you must write code to have different results…
Signaler
0
0
bob roos
#2
Posté le 20 avril 2019 - 22:18
I never worried about the type of the variable in SWITCH. The definition just says "SWITCH <Comparison variable>".
Can you post the specific example you are having trouble with?
Signaler
0
0
Al is a valid name
#3
Posté le 24 avril 2019 - 15:22
Hello Vegeboss
The Switch statement does not return any value.
It tests the value in the Switch against the Case values and then executes the code in the relevant Case
If you are using the Switch statement to create a Result, the best approach would be to assign a value to a variable in the Case options and then use the Result option at the end of the Switch to return that variable value. The value type returned will depend on the variable type declared for the Result
Regards
Al
Signaler
0
0
VEGEboss
#4
Membre enregistré
88 messages
Popularité : +2 (2 votes)
Posté le 24 avril 2019 - 16:18
hello folks
in my subject I said "SWITCH control": the NEW object of Windev 24
...you are talking of the SWITCH instruction on WLanguage…
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