Thank you for the video! There's so little information about this topic on the internet. Also FYI, you can use data types directly in switch-case statement like this: case TypeOf("Parameter") of WString: ; //do smth String: ; //do smth SInt: ; //do smth USInt: ; Int: . etc . etc . etc else ; // default action or error end_case;