Dynamic variable names: Difference between revisions
m
→{{header|FreePascal}}
Line 907:
* The free and readable alternative
* compiles natively to almost any platform, including raspberry PI
*
* This demo uses a dictionary because it is compiled: it cannot make
* dynamic variables at runtime.
*)
USES
TYPE
VAR
FUNCTION SetType ( strVal: string ): variant;
(* If the value is numeric, store it as numeric, otherwise store it as string *)
BEGIN
END.
</lang>JGAD 2021/05/13
|