Executes a subroutine at a specified address and returns a Large value.
x = LP:(addr)([parameters])
x = LPasCall(addr)([parameters])
x:Large
addr:iexp
parameters:aexp
The parameters are placed in reverse order on the stack.
LP:()() and LPasCall()() expects the subroutine to clear the stack.
The parameters can be coerced to a specific format using by preceding the value with one of the following designators:
Dbl: double
Sng: float, single
Large: Large integer
Cur: Currency value
L: Long
Int: Integer
Var: Variant
Dim a% = ProcAddr(test)
~LP:(a%)( Large:2, 3 )
' or
~LPasCall(a%)( Large:2, 3)
Procedure test(i%, la As Large)
Print la, i%
EndProc
A Procedure takes it parameters by value using the StdCall convention.
C:(), LC:(), P:(), LP:(), Call(), CallX(), CCall(), LCCall(), PasCall(), LPasCall(), StdCall(), LStdCall()
{Created by Sjouke Hamstra; Last updated: 12/10/2014 by James Gaite}