PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → WD24 Switch Control
WD24 Switch Control
Débuté par VEGEboss, 19 avr. 2019 19:32 - 3 réponses
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…

}:(
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?
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
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… :)