Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide To Clipper - <b>clret return values to clipper</b> http://www.ousob.com [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
CLret              Return values to Clipper


Syntax:        CLret r

Description:   This macro is used to return values to Clipper.
               Allowable return values (r) include any variable of the
               correct type, one or two 16-bit registers depending on
               the size of the declared function type, or nothing if the
               function has been declared void.

               Note: Type checking is enforced according to the
               return type specified in the function declaration
               (CLfunc).

----------------------------------- Example --------------------------------

   The following example is the EXTEND.LIB function BIN2L() which
   returns an integer numeric value:

        CLfunc long BIN2L <char str>

        CLcode
                les     bx, str
                mov     ax, es:[bx]
                mov     dx, es:[bx+2]

        CLret   DX AX


See Also: CLcode CLfunc

Online resources provided by: http://www.ousob.com --- NG 2 HTML conversion by Dave Pearson