Is it possible to use a string for the switch function?
Thought:
Such a simple idea, but it would be nice to incorporate either automatic or manual file backups.
Question regarding the switch function, and a thought
-
alanwms
- Posts: 154
- http://meble-kuchenne.info.pl
- Joined: Fri Dec 04, 2020 2:29 pm
- Has thanked: 26 times
- Been thanked: 8 times
-
Steve-Matrix
- Matrix Staff
- Posts: 1985
- Joined: Sat Dec 05, 2020 10:32 am
- Has thanked: 296 times
- Been thanked: 459 times
Re: Question regarding the switch function, and a thought
If you mean the Switch command icon, then not exactly. That said, you can create a set of constants with appropriate names and unique integer values, and then use those throughout your project. These could then be used in a Switch statement and would be make the code a lot more readable and easy to understand.
As for your second point, there are automatic backup options in the Global Options screen.
As for your second point, there are automatic backup options in the Global Options screen.
-
medelec35
- Valued Contributor
- Posts: 2331
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 726 times
- Been thanked: 785 times
Re: Question regarding the switch function, and a thought
Would the attached example work for you?
You can use single string chars for the switch function.
You can use single string chars for the switch function.
- Attachments
-
- Using string for switch function.fcfx
- (11.6 KiB) Downloaded 27 times
Martin