Forum Migration Notice
Update (2026-01-21): The user forums are now in read-only mode pending the data migration.

Update (2026-01-12): The user forums will be put into read-only mode on the 21st of January, 00:00 CET, to prepare for the data migration.

We're transitioning to a more modern community platform by beginning of next year. Learn about the upcoming changes and what to expect.

FUNC rawbytes?

Hello,

I am trying to build a function:
FUNC rawbytes PackCustomMessage(VAR num messageNumber,\VAR string messageString)
        ! Creates a custom message (error/warning/validation)
        ! Inputs:
        !   -messageNumber: num
        !   -optional messageString: string
        ! Returns:
        !   -message2: rawbytes
        .......
        RETURN message2;
    ENDFUNC

I am getting an error saying rawbytes not a value type. So my question is, are there some data types (rawbytes in particular) that the "FUNC" cannot use?

Thanks for any help,
SM

Best Answer