Programación General > Power Builder

 Re: Consulta

(1/1)

grcornejoa:
Hola:

Quisiera por favor, me den una breve explicacion de como usar la sentencia classdefinition, variabledefition.

Necesito ejemplos para poder leer los items que hay en un Menu por ejm, vi en las librerias PFC un ejemplo pero se me hizo muy complicado, agradeceria un poco de instruccion en ese tema.

Gracias. B)

pierpiter:
Hola, no entiendo bien a donde apuntas. Las PFC son librerías con extensiones del lenguaje (agregan funciones y objetos ya predefinidos para hacer más cosas).
ClassDefinition (el objeto) es un objeto que te permite obtener información acerca de la definición de clases en power. Este objeto tiene propiedades y funciones (fijate en la ayuda de power)...

--- Código: Text --- The ClassDefinition object lets you check: The name of the classThe library the class was loaded fromThe class definition of its ancestor, if anyThe class definition of its parent or container object, if anyWhether the class is autoinstantiated  
Esas entre otras. Lo mismo para VariableDefinition...

--- Código: Text --- The VariableDefinition object has information about: ·  The variable's name and type·  Whether the variable is a scalar or an array and information about the array·  The variable's initial value, whether the value overrides an ancestor's value, and whether the variable is a constant·  The read and write access levels for the variable·  The scope of the variable (global, shared, instance, local, argument), including whether the variable is an argument and how the argument is passed  
En cuanto a ejemplos, no tengo ninguno, pero fijate si es necesario usar esto para leer la estructura del menú (si es a lo que te referís...) cualquier cosa pregunta, trataremos de buscarle la vuelta, saludos.

Navegación

[0] Índice de Mensajes

Ir a la versión completa