CallSub error ?

agraham

Expert
Licensed User
Longtime User
It's a deliberate restriction. Only Subs with 0 to 3 ByVal String parameters and a String return may be be invoked by CallSub. The reason is because of the way CallSub works in a compiled application. It uses .NET delegate types, which are a sort of pointer to a function. Each Sub signature (number and types of parameters and return type) needs its' own delegate type so the restriction limits the number of delegate types needed to four. In fact this same restriction already exists in previous versions of Basic4ppc.
 
Last edited:
Top