Is there a way to directly pass a string expression to function expecting BYREF ASCIIZ parameter (without first assigning it to an ASCIIZ variable)?
IOW, I want to pass something like PARSE$( a$, $BS, 1) to a function like FUNCTION ProcessData( szSource AS ASCIIZ) AS LONG. I know I can assign the PARSE$ to an ASCIIZ variable, but then I'm forced to impose a limitation on the size of strings that the database can hold and I'd rather not do that if possible.
I could assign it to a STRING variable and call the function with BYVAL STRPTR( ), but I'm wondering if there is a way to bypass that assignment and use the expression directly in the function call?
IOW, I want to pass something like PARSE$( a$, $BS, 1) to a function like FUNCTION ProcessData( szSource AS ASCIIZ) AS LONG. I know I can assign the PARSE$ to an ASCIIZ variable, but then I'm forced to impose a limitation on the size of strings that the database can hold and I'd rather not do that if possible.
I could assign it to a STRING variable and call the function with BYVAL STRPTR( ), but I'm wondering if there is a way to bypass that assignment and use the expression directly in the function call?
Comment