PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WINDEV 2024 → WD24 Switch Control
WD24 Switch Control
Started by VEGEboss, Apr., 19 2019 7:32 PM - 3 replies
Registered member
88 messages
Popularité : +2 (2 votes)
Posted on April, 19 2019 - 7:32 PM
it seems that it can return ONLY string value…

or you must write code to have different results…

}:(
Posted on April, 20 2019 - 10:18 PM
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?
Posted on April, 24 2019 - 3:22 PM
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
Registered member
88 messages
Popularité : +2 (2 votes)
Posted on April, 24 2019 - 4:18 PM
hello folks

in my subject I said "SWITCH control": the NEW object of Windev 24

...you are talking of the SWITCH instruction on WLanguage… :)