Variable arrays

Posted by jmls on 31-Jul-2008 10:24

has anyone else played with the variable arrays as parameters ? Quite cool..

PROCEDURE foo:

DEF INPUT PARAMETER p AS INT EXTENT NO-UNDO. /* not a typo */

MESSAGE EXTENT(p) VIEW-AS ALERT-BOX.

END.

DEF VAR a AS INT EXTENT 5 NO-UNDO.

DEF VAR b AS INT EXTENT 10 NO-UNDO.

RUN Foo(a).

RUN Foo(b).

All Replies

Posted by Simon de Kraa on 31-Jul-2008 10:40

10.1C feature...

Posted by jmls on 31-Jul-2008 10:43

yeah, well, I ... was .... um .... oh yeah, just checking to make sure that you guys were on your toes. Of course I knew that. I've used it everywhere. Well done Simon, you spotted the trap ...

Posted by Simon de Kraa on 31-Jul-2008 10:59

LOL

This thread is closed