• Jueves 2 de Mayo de 2024, 06:07

Autor Tema:  Re: Consulta  (Leído 1406 veces)

grcornejoa

  • Nuevo Miembro
  • *
  • Mensajes: 9
    • Ver Perfil
Re: Consulta
« en: Lunes 12 de Junio de 2006, 08:14 »
0
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

  • Miembro activo
  • **
  • Mensajes: 58
    • Ver Perfil
Re: Consulta
« Respuesta #1 en: Martes 13 de Junio de 2006, 15:47 »
0
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
  1.  
  2. The ClassDefinition object lets you check:
  3.  
  4. The name of the class
  5. The library the class was loaded from
  6. The class definition of its ancestor, if any
  7. The class definition of its parent or container object, if any
  8. Whether the class is autoinstantiated
  9.  
  10.  

Esas entre otras. Lo mismo para VariableDefinition...
Código: Text
  1.  
  2. The VariableDefinition object has information about:
  3.  
  4. ·  The variable's name and type
  5. ·  Whether the variable is a scalar or an array and information about the array
  6. ·  The variable's initial value, whether the value overrides an ancestor's value, and whether the variable is a constant
  7. ·  The read and write access levels for the variable
  8. ·  The scope of the variable (global, shared, instance, local, argument), including whether the variable is an argument and how the argument is passed
  9.  
  10.  

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.