Re: SWITCH question
- Posted by Ekhnat0n Dec 25, 2017
- 2729 views
What abut this solution:
C_USE={C_HANDLE,C-POINTER}
SWITCH C_USE
...CASE !C_USE[1] then
......INV_HNDL_MSG) INV_MSG= {"invalid handle in {module, line}} & fallthrough
......IF !(C_USE[2]) INV_MSG= {"invalid pointer in handle,{module,handle,line} ENDIF & fallthrough
....../* Action can follow safely */
...CASE any_other_case INV_MSG= {"No handler->pointer: ",{module,line}, "solution available yet" )
... === etc for multiple sig's
...DEFAULT (default-handling for non selected cases) ...Return (if any, the error=messages, if not... signal the unknown error)
ENDSWITCH
I know the coding in itself is incorrect, but the logic is ok
I´ve been too long outof commission and would have to look up the correct code for each part of the flow, you all OTOH will exactly know what the correct keywords and their parameters are.
SO, take this flow, correct it's syntax and the error or unpredictability will no longer be there