this is not clear what syntax may be used to pass zstring*n stuff or similar (string*n).
Code: Select all
sub X(byval S as zstring*6)
? S
end sub
X(cast(zstring*6, "abc"))
I found nothing in the doc at zstring page or function page (only zstring ptr is cited), as well as for returning stuff as fixed-len strings.error 59: Illegal specification, at parameter 1 (S) of X() in 'sub X(byval S as zstring*6)'
Code: Select all
function X(byval S as zstring*6) as zstring*6
return S
end function
? X(cast(zstring*6, "abc"))
Do somebody can kindly tell us more about all of this?error 59: Illegal specification, at parameter 1 (S) of X() in 'function X(byval S as zstring*6) as zstring*6'
error 181: Invalid assignment/conversion in 'return S'
Thank you.