2005-08-17 01:46 PM
2005-08-18 03:01 PM
F. wrote:Yes you can pass array parameter of any dimension to a macro independent macro's default dimension even if 'a caller' object has no such parameter.
Fascinating, that the array dimension oflenT, set in the macros parameter list, does not matter if it's called. The lenTidxcan become e.g. 4 and the usage of lenTidx[4] would cause outside the makro-context an error. But because obvisiously the definition of lenTin the main object has a higher priority it's allowed.
2005-08-18 03:18 PM
F. wrote:Hi Frank,
@Oliver
The objects I sent you Tuesday night didn't work, because there have been defined several moveable hotspots by calling the macro more than once. If you call the macro just one time it works for not-arrays too. See my modified and reduced example attached.
2005-08-18 03:27 PM
Oleg wrote:Hi Oleg,
Yes you can pass array parameter of any dimension to a macro independent macro's default dimension even if 'a caller' object has no such parameter.
It is more general feature out of the subject. IMHO the reason is not a priority but that array parameters are _dynamic_ arrays now.
It is very interesting feature irrespective of macros and hotspots.
We can increase an array size by an object itself ( instead of defining a big oversized array like earlier )
PARAMETERS array_param [idx] = some_value
If idx more than current array dimension it will be increased.
PARAMETERS array_param = other_array
The whole array will assigned. Other_array will not be necessarily parameter or has same size as array_param.
2005-08-18 04:44 PM
2005-08-22 09:29 PM