Árvore de páginas

Versões comparadas

Chave

  • Esta linha foi adicionada.
  • Esta linha foi removida.
  • A formatação mudou.

...

Pagetitle
Reflection.isAnnotationFunctionPresent
Reflection.isAnnotationFunctionPresent

Procura Efetua a busca de uma Annotation em uma função ADVPLde um determinado programa fonte.

Sintaxe

Bloco de código
collapsefalse
Reflection.isAnnotationFunctionPresent( cSourceName, cFunctionName, cAnnotationName )

...

Nome

Tipo

Descrição

Obrigatório

Referência

cSourceName

caractere

Indica o nome Nome do fonte onde está contendo a função que onde será procurado procurada a Annotation.

X


cPropertyName

caractere

Indica o nome Nome da função onde será procurada a Annotation.

X


cAnnotationName
caractereIndica o nome Nome da Annotation que será a ser procurada. X

Retorno

Nome

Tipo

Descrição

lRet

numéricologico

Retorna .T. caso encontre a Annotation e .F. caso não encontre.

Exemplos

Bloco de código
languagecpp
themeEclipse
titleexemplo1.tlpptest_doc_resourceIsAnnotationFunctionPresent
linenumberstrue
/*
Programa test_doc_resourceIsAnnotationFunctionPresent.tlpp
*/

#include "tlpp-core.th"

@annotation AnnotationExemplo
    nicknameresourceExemplo as char
@end


@AnnotationExemplo(nickname = "Company"resourceExemplo='Valor de Exemplo1')
function exemploAnnotationu_resourceIsAnnotationFunctionPresent()
return
Bloco de código
languagecpp
themeEclipse
titletest_doc_IsAnnotationFunctionPresent.tlpp
linenumberstrue
#include "tlpp-core.th"

Function u_testIsAnnotationFunctionPresent


main function usoDeAnnotation()

	conoutConout(Reflection.isAnnotationFunctionPresent("exemplo1'test_doc_resourceIsAnnotationFunctionPresent.tlpp"', "exemploAnnotationu_resourceIsAnnotationFunctionPresent", "AnnotationExemplo"))
	conoutConout(Reflection.isAnnotationFunctionPresent("exemplo1'test_doc_resourceIsAnnotationFunctionPresent.tlpp"', "exemploAnnotationu_resourceIsAnnotationFunctionPresent", "TesteAnotherAnnotationExemplo"))
returnReturn

Resultado do Exemplo

.T.

.F.

...