INPUTMASK en Browse

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
claudiotedesco
Posts: 132
Joined: Thu Jul 31, 2008 12:05 pm

INPUTMASK en Browse

Post by claudiotedesco »

Mi consulta es la siguiente, tengo un Browse y quisiera que el campo NOMBRE del archivo de clientes sea alfanumerico y de 30 posiciones, segun mi ejemplo funciona pero REPLICATE('A',30) solo me permite letras y no simbolos, probe con ! pero me pone todo en mayusculas y yo necesito mayusculas, minusculas y simbolos.
Les agradezco su ayuda

@ 10,10 BROWSE BrwClientes
HEADERS { 'Código' , 'Nombre del Cliente' } ;
WIDTHS { 100 , 350 } ;
WORKAREA Clientes ;
FIELDS { 'Clientes->codigo' , 'Clientes->nombre' } ;
INPUTMASK{'9999', REPLICATE('A',30)}
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: INPUTMASK en Browse

Post by esgici »

claudiotedesco wrote:Mi consulta es la siguiente, tengo un Browse y quisiera que el campo NOMBRE del archivo de clientes sea alfanumerico y de 30 posiciones, segun mi ejemplo funciona pero REPLICATE('A',30) solo me permite letras y no simbolos, probe con ! pero me pone todo en mayusculas y yo necesito mayusculas, minusculas y simbolos.
Les agradezco su ayuda

@ 10,10 BROWSE BrwClientes
HEADERS { 'Código' , 'Nombre del Cliente' } ;
WIDTHS { 100 , 350 } ;
WORKAREA Clientes ;
FIELDS { 'Clientes->codigo' , 'Clientes->nombre' } ;
INPUTMASK{'9999', REPLICATE('A',30)}
Google wrote:My query is as follows, I have a browser and would like the file name field is alphanumeric customers and 30 positions, according to my example works but Replicate ( 'A', 30) only allows me letters and no symbols, probe with! but I put everything in uppercase, and I need to uppercase, lowercase, and symbols.
Hola Claudio

In INPUTMASK "A" means "only uppercase characters" and "X" means "any character".

Please try to use "X" instead of "A".

Saludos

--

Esgici
Viva INTERNATIONAL HMG :D
claudiotedesco
Posts: 132
Joined: Thu Jul 31, 2008 12:05 pm

Re: INPUTMASK en Browse

Post by claudiotedesco »

HOLA

QUERIA CONFIRMAR QUE NO FUNCIONA "X" EN LUGAR DE "A". ME COLOCA TODAS XXXXXXXXXXXXX
ALQUIEN TIENE LA SOLUCIÓN A DICHO PROBLEMA
LES AGRADEZCO
User avatar
Roberto Lopez
HMG Founder
Posts: 4004
Joined: Wed Jul 30, 2008 6:43 pm

Re: INPUTMASK en Browse

Post by Roberto Lopez »

claudiotedesco wrote:HOLA

QUERIA CONFIRMAR QUE NO FUNCIONA "X" EN LUGAR DE "A". ME COLOCA TODAS XXXXXXXXXXXXX
ALQUIEN TIENE LA SOLUCIÓN A DICHO PROBLEMA
LES AGRADEZCO
From the HMG documentation:

Code: Select all

InputMask String (Numeric Textbox):

      9 Displays digits
      $ Displays a dollar sign in place of a leading space
      * Displays an asterisk in place of a leading space
      . Specifies a decimal point position
      , Specifies a comma position

InputMask String (Non-Numeric Textbox):

      9 Digits
      A Alphabetic Characters
      ! Converts an alphabetic character to uppercase

      (All other characters ar included in text in the position indicated by the mask)
 
So, this is not a problem. This behavior is by design.

I'll consider adding this feature for future versions.

Regards,

Roberto.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
claudiotedesco
Posts: 132
Joined: Thu Jul 31, 2008 12:05 pm

Re: INPUTMASK en Browse

Post by claudiotedesco »

muchas gracias
User avatar
sudip
Posts: 1454
Joined: Sat Mar 07, 2009 11:52 am
Location: Kolkata, WB, India

Re: INPUTMASK en Browse

Post by sudip »

Hi,

Thanks a lot for INPUT MASK discussion. I learned a lot from this.

BTW, I thought this place is for Self Introduction for "New" members :)

With best regards.

Sudip
With best regards,
Sudip
Post Reply