hi, i have 2 questions about types:
1.How do i pass a user defined type, as a parameter -
to a function?
2.I've declared a local user defined type in a function that returns it, but something is wrong with
the return value.
The first inner type's field is empty...
Is it me, or is it a bug ...
rem ***********************
type myType
a as integer
b$ as string
endtype
rem ***********************
yyy as myType
yyy=test1()
print "yyy.b$=";yyy.b$
print "yyy.a=";yyy.a
wait key
end
function test1()
rem declaring a variable of the new type:
xxx as myType
rem initiate the variable:
xxx.a=8
xxx.b$="kkk"
rem return the variable:
endfunction xxx