Comandos que se utilizan en Progress
Publicado por irving (1 intervención) el 12/02/2012 22:09:44
Hola quisiera saber las siguientes preguntas sobre los siguientes comandos FORM, REPEAT y SKIP
1.- ¿Para que sirve?
2.-¿Su Sintaxis?
3.-¿Y un ejemplo?
Este es un ejemplo del comando FIND
• Find: Localizaun registroen una tablay se mueveese discoen unbuffer de registro.
Sintaxis
FIND [ FIRST | LAST | NEXT | PREV ] record
[ constant ]
[ OF table ]
[ WHERE expression ]
[ USE-INDEX index ]
[ USING [ FRAME frame ] field
[ AND [ FRAME frame ] field ] ...
]
[ SHARE-LOCK | EXCLUSIVE-LOCK | NO-LOCK ]
[ NO-WAIT ]
[ NO-PREFETCH ]
[ NO-ERROR ]
Ejemplo:
/*Para encontrar el cliente número 2 :*/
FIND articulos WHERE articulos.noart = 2.
/* Para desplegar los datos del cliente encontrado:*/
DISPLAY articulos.
/*Para desplegar ciertos datos del cliente :*/
DISPLAY articulos.nomart
1.- ¿Para que sirve?
2.-¿Su Sintaxis?
3.-¿Y un ejemplo?
Este es un ejemplo del comando FIND
• Find: Localizaun registroen una tablay se mueveese discoen unbuffer de registro.
Sintaxis
FIND [ FIRST | LAST | NEXT | PREV ] record
[ constant ]
[ OF table ]
[ WHERE expression ]
[ USE-INDEX index ]
[ USING [ FRAME frame ] field
[ AND [ FRAME frame ] field ] ...
]
[ SHARE-LOCK | EXCLUSIVE-LOCK | NO-LOCK ]
[ NO-WAIT ]
[ NO-PREFETCH ]
[ NO-ERROR ]
Ejemplo:
/*Para encontrar el cliente número 2 :*/
FIND articulos WHERE articulos.noart = 2.
/* Para desplegar los datos del cliente encontrado:*/
DISPLAY articulos.
/*Para desplegar ciertos datos del cliente :*/
DISPLAY articulos.nomart
Valora esta pregunta
0