Página 1 de 1

Problema no GET

Enviado: 16 Out 2006 10:32
por david.miguel
Ola,

Estou com problema neste código do meu programa, alguem pode me ajudar ?

cVar := cCampo
cPict := "@!"
cValid := Alert("TESTE")

@ nLin, nCol GET &cVar PICT cPict VALID &cValid
READ

Desde já obrigado
:(

Enviado: 16 Out 2006 10:42
por gvc
cVar := cCampo
cPict := "@!"
cValid := 'Alert("TESTE")'

@ nLin, nCol GET &cVar. PICT cPict VALID &cValid.
READ

Enviado: 16 Out 2006 12:38
por david.miguel
Continua dando erro: Base/1077 Argument error: .NOT.

Enviado: 16 Out 2006 13:21
por gvc
A função que vc coloca no VALID deve retornar .T. ou .F.
A função alert() retorna um número.

Enviado: 16 Out 2006 15:17
por Grings
cVar :=cCampo
cPict := "@!"

@ nLin, nCol GET cVar PICT cPict VALID cValid(cVar)
READ

Function cValid(cTeste)
If cTeste==Space(40)
Alert("TESTE")
Return(.F.)
EndIf
Return(.T.)