I have been wondering how to make good use of the case of but I do not know how to implement it correctly or when it is necessary to do so. I would like someone to explain to me how it works.
I have been wondering how to make good use of the case of but I do not know how to implement it correctly or when it is necessary to do so. I would like someone to explain to me how it works.
To explain it in a simple way, the CASE ... OF gives you the possibility (in many cases) to avoid the IF ... THEN sentence when you have many nestings or many conditions. A premise to use it is that the selection expression must be a numerical, ordinal, enumerated, ... but can not be any type.
A couple of links with examples and a simple explanation can be this page: link
Or the Embarcadero DocWiki itself:
link