Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Array Differentiation
#9
I need to get the type of the array variable passed in. Is this possible? Alternatively, are there any other solutions?
The following code will show an error

Macro Macro29
Code:
Copy      Help
ARRAY(str) as; out sub.f(as)
ARRAY(str) ai; out sub.f(ai)

#sub f
function~ `arg

sel GetArrayType(arg)
,case VT_I4; ret "int[]"
,case 256; ret "string[]"


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)