I have a few odd questions, but from the docs
Ok so that is straight forward (no more than 32 parameters
Ok I got that ... If meaning that I have 3 parameters, all being strings, the combined size can not exceed 64Kb (or 64,000 * 1024) and each character is 1 byte
But if I have 2 parameters, say 1 string, and 1 DWORD.... then does that mean my limitation of 64Kb (or 64,000 * 1024) now means 1 byte per character, and 4 bytes per DWORD and add those values together????
Example: If I have a function that takes 32 parameters, and each is a DWORD, and I pass to each parameter the same number of bytes, would my limit be (64,000 * 1024) / 32
???
Maybe I am mis-understanding, but maybe I got it right???
Parameter restrictions
PowerBASIC compilers have a limit of 32 parameters per FUNCTION. To pass more than 32 parameters to a FUNCTION, construct a User-Defined Type (UDT) and pass the UDT by reference (BYREF) instead.
PowerBASIC compilers have a limit of 32 parameters per FUNCTION. To pass more than 32 parameters to a FUNCTION, construct a User-Defined Type (UDT) and pass the UDT by reference (BYREF) instead.
Fixed-length strings, ASCIIZ strings, and User-Defined Types/Unions may also be passed as BYVAL or OPTIONAL parameters, now. Try to avoid passing large items BYVAL, as it’s terribly inefficient, and there is a maximum size limit of 64 Kb for a given parameter list.
But if I have 2 parameters, say 1 string, and 1 DWORD.... then does that mean my limitation of 64Kb (or 64,000 * 1024) now means 1 byte per character, and 4 bytes per DWORD and add those values together????
Example: If I have a function that takes 32 parameters, and each is a DWORD, and I pass to each parameter the same number of bytes, would my limit be (64,000 * 1024) / 32
???
Maybe I am mis-understanding, but maybe I got it right???
Comment