Árvore de páginas

Versões comparadas

Chave

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

...

Bloco de código
languagecpp
themeEclipse
titleexemplo1.tlpp
linenumberstrue
@annotation AnnotationExemplo
    nickname as char
@end
 
User function testeAnnotation(@AnnotationExemplo("oioi") parm1, @AnnotationExemplo("oioi") parm2) 
	conout("funcaoTesteAnnotation")
return
main function usoDeAnnotation()
	if conout(Reflection.isAnnottationFunctionParamPresent("exemplo1.tlpp", "u_testeAnnotation", 1, "AnnotationExemplo"))
		jRet := conout(Reflection.getFunctionAnnotationisAnnottationFunctionParamPresent("exemplo1.tlpp", "exemploAnnotationu_testeAnnotation", 2, "AnnotationExemplo"))
		conout(jRet["NICKNAME"])
	endif

Reflection.isAnnottationFunctionParamPresent("exemplo1.tlpp", "u_testeAnnotation", 1, "AnnotationNaoEncontrada"))
return

Resultado do Exemplo

.T.

.F.

.F.Company

Abrangência

17.3.0.3

Veja também

...