` Printed Icetips Article

Icetips Article



Par2: Variable variable size when passed by parameter
2013-09-26 -- Larry Sand
 
This procedure won't take the LIKE statement.  Although I have used it in 
other procedures (like classes), or from Browses to forms when I pass a 
parameter.  But this time it won't.  Any reason why.

            Map
    showNameFromBrowse  PROCEDURE(STRING pName)
            End
-------------------------------------------------------------------------
showNameFromBrowse  PROCEDURE(STRING pName)

lName            like(pName)    <--- won't work
lName            &String            <--- will work
lName            String(20)        <--- will work too

    CODE
    ! some code
    RETURN

=====
However, you can use:

lName String(size(pName))



Printed November 21, 2024, 11:12 am
This article has been viewed/printed 35225 times.