08-08-2005 03:23 AM
08-08-2005 04:19 AM - edited 08-08-2005 04:19 AM
Hi
Arrays can't be assigned on this Kind.
If you work with arrays, you should use a loop(always!), for example: for-loop
for i = 1 to 3
Message Edited by joh_joh on 08-08-2005 04:24 AM
08-08-2005 09:15 AM
Hi arkangel,
You can do this, you just need to dimension the variable outside the Function as a normal scaler variant [dim u], not a fixed-length array [dim u(3)].
'code starts here
function dosometask()
dim y(3)
y(1)=1
y(2)=2
y(3)=3
dosometask=y
end function
dim u
u=dosometask()
msgbox(u(1))
'code ends here
Ask if you have further questions,
Brad Turpin
DIAdem Product Support Engineer
National Instruments