For Programmers: Free Programming Magazines  


Home > Archive > Clipper > May 2007 > Re: It's possible to know a name of a codeblock ?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: It's possible to know a name of a codeblock ?
Marco A. Cruz Quevedo

2007-05-15, 9:55 pm

On May 3, 7:11 am, "albert" <alberto.pecchi...@inwind.it> wrote:
> It's possible to know a name of a codeblock ?
>
> Example:
>
> Codeblock1 : = {|| ..........}
> Codeblock2 := {||................................}
>
> Test(codeblock1)
>
> Test(codeblock2)
>
> Function test (cblock)
>
> If cblock = "codeblock1" ?????? <-------- How to know the name ?????
> .........
> Endif
>
> Franz


Well, as far as I can see, what you are asking is simply to know the
NAME of an actual ARGUMENT variable.
But you can research with the following hint: a codeblock is an OBJECT
of the CLASS BLOCK, i. e.

?codeblock:classname() ---------> "BLOCK"

Try with Class(y)'s CSYINSPECT().

Regards,

Marco

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com