Hi Joe,
This indeed works in VO, but it shouldn't since the function is strongly typed to be accepting a USUAL by value, but the code is doing something very different, it is passing a STRING by reference.
If you change it to accept a STRING by reference, then it will work:
Code: Select all
FUNCTION Joe( cString REF STRING ) AS VOID STRICT
or you can define it to accept a USUAL by reference and instead type your LOCAL cParam AS STRING instead of USUAL:
Code: Select all
LOCAL cParam AS USUAL
FUNCTION Joe( cString REF USUAL) AS VOID STRICT
Finally, you could also remove strong typing form the function and it will work either way:
Code: Select all
FUNCTION Joe( cString ) AS VOID CLIPPER
but I would not suggest to do this, since you will lose all compile time checking.