PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → WD24 Switch Control
WD24 Switch Control
Iniciado por VEGEboss, 19,abr. 2019 19:32 - 3 respuestas
Miembro registrado
88 mensajes
Publicado el 19,abril 2019 - 19:32
it seems that it can return ONLY string value…

or you must write code to have different results…

}:(
Publicado el 20,abril 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?
Publicado el 24,abril 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
Miembro registrado
88 mensajes
Publicado el 24,abril 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… :)