ReneMiner
15-09-2015, 09:04
where <stringexpression> contains a valid Typename (udt/numeral)
We can for example
Dim variablename Like <stringexpression> At 0
SetAt(variablename, Heap_Alloc(SizeOf(variablename)) )
since the size to allocate is not known in advance.
Also for other purpose one always has to create a variable using Dim ... Like to retrieve the SizeOf("typename")
Would it be possible to make SizeOf() accept typenames from expressions that are passed as a String?
Dim variablename Like <stringexpression> At Heap_Alloc(SizeOf(["" &] <stringexpression>))
We can for example
Dim variablename Like <stringexpression> At 0
SetAt(variablename, Heap_Alloc(SizeOf(variablename)) )
since the size to allocate is not known in advance.
Also for other purpose one always has to create a variable using Dim ... Like to retrieve the SizeOf("typename")
Would it be possible to make SizeOf() accept typenames from expressions that are passed as a String?
Dim variablename Like <stringexpression> At Heap_Alloc(SizeOf(["" &] <stringexpression>))