` Printed Icetips Article

Icetips Article



Par2: Local Procedure in a class
2010-12-07 -- John Dunn
 
Yes, you can declare local procedures in a class method.  For example:

cMyClass.SomeMethod PROCEDURE()

MAP
LocalProcedure   PROCEDURE(BYTE pbParam1, STRING psParam2),BYTE
END ! map

bParam1 BYTE

sParam2 STRING(10)
...

  CODE

  ....
  bErrorLevel = LocalProcedure(bParam1,sParam2)

....

!----------------------------------------------------------!

LocalProcedure PROCEDURE(BYTE pbParam1, STRING psParam2) !! ,BYTE

bProcErrorLevel BYTE

  CODE

  ... local procedure code....

  RETURN bProcErrorLevel



Printed November 24, 2024, 1:06 am
This article has been viewed/printed 35227 times.