PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV 2024
→
WD24 Switch Control
WD24 Switch Control
Started by VEGEboss, Apr., 19 2019 7:32 PM - 3 replies
Connect yourself…
VEGEboss
#1
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…
Report
0
0
bob roos
#2
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?
Report
0
0
Al is a valid name
#3
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
Report
0
0
VEGEboss
#4
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…
Report
0
0
→ Go back to WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text