Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Question on user-defined function
#4
Or use VARIANT. It is simple for the caller, but slow because copies data etc.
Function Function292
Code:
Copy      Help
function `v ;;` is for VARIANT; can pass string or array or int etc, don't need multiple parameters.

;outx v.vt
sel v.vt
,case VT_I4|VT_ARRAY
,ARRAY(int)& a=v.parray
,out a.len
,
,case VT_BSTR
,str s=v
,out s
,
,case else end ERR_BADARG
,


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)