Hi Guis,
I would like to know if is there some kind of GET Picture that I could specify to accept only Chars and numbers(Ex: 01234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ) without alows the user to digit special chars, Is there ?
Hi Guis,
I would like to know if is there some kind of GET Picture that I could specify to accept only Chars and numbers(Ex: 01234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ) without alows the user to digit special chars, Is there ?
I found out the parameter N. IF I use PICTURE "NNNNN" it's working, but if I use PICTURE "@N" don't work. Do you know why ?
LOCAL cLetraNum := SPACE(39)
@ 1, 6 GET oGet VAR cLetraNum OF oDlg SIZE 160, 10 COLOR "W/G" ;
PICTURE "@KR 99999999999-!!!!!!!!!!!!!!!!!!!!!!!!!!"Karinha,
Na mesma posição eu preciso aceitar letras ou números. No caso do seu exemplos, no começo só aceita números e no final qualquer coisa. No meu caso, caracteres especiais não devem ser aceitos, mas em qualquer posição, pode-se digitar uma letra ou um numero. Entendeu ?
perhpas it need a a valid function....
Or just that PICTURE "@N" Works !
In Brasil, we use to say... "If everything goes wrong, see the manual"
James just posted the manual...
@ 2, 8 GET cAlpNum OF oDlg SIZE 60, 10 PICTURE "NNNNNNNNNN"
(of course, cAlpNum must be a character variable)
Regards, Euclides
I didn't understand is why I can do PICTURE "@!" AND can't to do PICTURE "@N". Do you know ?
If "@NNN" does what you want, then what is the problem? Maybe you don't want to specify the length?
Actually, "NNNN" also allows lower case letters too. Did you realize that?
oGet:bChange := { | nKey,nFlag,oB|(Chr(nKey)$"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ")}
James Bott wrote:If "@NNN" does what you want, then what is the problem? Maybe you don't want to specify the length?
Actually, "NNNN" also allows lower case letters too. Did you realize that?
Silvio.Falconi wrote:oGet:bChange := { | nKey,nFlag,oB|(Chr(nKey)$"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ")}