opciones deshabilitadas?????

Gabriel
21 de Diciembre del 2004
HOLA... UN SALUDO DESDE PUEBLA... TENGO UN PREGUNTA QUE MIS ALUMNOS ME HACEN... LA CUAL NO SE COMO RESOLVERLA... ES LA SIGUIENTE:

TENGO UN SISTEMA, QUE INGRESA CON UN NOMBRE DE USUARIO Y PASSWORD... DE ESTA FORMA PUEDO SABER SI ES ADMINISTRADOR O USUARIO NORMAL... COMO LE HAGO PARA DESHABILITAR ALGUNAS OPCIONES DEL MENU DE BARRA O PRINCIPAL QUE TENGO PARA QUE ESTE USUARIO NO PUEDA POR EJEMPLO DAR DE ALTA A UN USUARIO Y DARLE LA OPCION DE ADMINISTRADOR???..
POR EJEMPLO EXISTEN DOS OPCIONES EN EL MENU... ALTAS Y CONSULTAS.... COMO LE HAGO PARA DESHABILITAR ALTAS, EN CASO DE QUE SE LOGUEE ALGUEN QUE NO SEA ADMINISTRADOR???
ESPERO Y ME EXPLIQUE.....
DE ANTEMANO GRACIAS...

luisr
21 de Diciembre del 2004
en el diseñador de menu, donde armas los titulos, hay un casillero, donde entras y podes poner leyendas y otras cosas, entre ellas unna ded las opciones es saltar por, donde podes poner por ej.
jerarquia = 0
en este caso dehabilitara la opcion a los usuarios que tengan jerarquia = 0, jerarquia puede ser una variable publica que definis cuando ingresa la clave.

moy
21 de Diciembre del 2004
prueba al hacer la comparacion del usuario solo pon la propiedad del botom de agregar asi . .. thisform.agregar.visible = .f.

espero te resulte