FoxInCloud
Lock textbox
Gravatar is a globally recognized avatar based on your email address. Lock textbox
  Arcadio Bianco
  All
  Jul 24, 2019 @ 07:55am

How to lock to a textbox to accept only numbers?

Gravatar is a globally recognized avatar based on your email address. re: Lock textbox
  Tore Bleken
  Arcadio Bianco
  Jul 24, 2019 @ 09:02am

Two possibilities:

yourTextBox.Inutmask = '9'
yourTextBox.Format = '999999'

See VFP Help for detail and other options for the properties Inputmask and Format.

Gravatar is a globally recognized avatar based on your email address. re: Lock textbox
  FoxInCloud Support - Thierry N.
  Arcadio Bianco
  Jul 24, 2019 @ 09:46am

Try .wcHTML5inputType=‘number’

Gravatar is a globally recognized avatar based on your email address. re: Lock textbox
  Arcadio Bianco
  FoxInCloud Support - Thierry N.
  Jul 25, 2019 @ 04:58am

It didn't work, are there any examples in the live tutorial?

Gravatar is a globally recognized avatar based on your email address. re: Lock textbox
  FoxInCloud Support - Thierry N.
  Arcadio Bianco
  Jul 25, 2019 @ 05:47am

It didn't work

What did you do and obtain? Can you post some illustration?

are there any examples in the live tutorial?

Not for now

Gravatar is a globally recognized avatar based on your email address. re: Lock textbox
  Arcadio Bianco
  FoxInCloud Support - Thierry N.
  Jul 31, 2019 @ 05:10pm

It worked correctly, I was using a customization from my web designer before, so it didn't work this for. Thank you.

Gravatar is a globally recognized avatar based on your email address. re: Lock textbox
  Vincent H.
  Arcadio Bianco
  Sep 21, 2019 @ 03:33am

Hi All,

But it seems that .inputMask = "AA999" does not lock text and number

Gravatar is a globally recognized avatar based on your email address. re: Lock textbox
  FoxInCloud Support - Thierry N.
  Vincent H.
  Sep 23, 2019 @ 03:14am

For now, .inputMask support is limited to what the stock HTML attributes (eg. <input type="number">) and CSS properties (eg. text-transform:uppercase;) can do.

Additional support (eg. mixed letters and figures .inputMask = "AA999") would require an additional JavaScript library such as this one.

Gravatar is a globally recognized avatar based on your email address. re: Lock textbox
  Vincent H.
  FoxInCloud Support - Thierry N.
  Sep 24, 2019 @ 01:54am

Thank you Thierry, I was afraid of missing something.
I will continue with an alert in .LostFocus

© 1996-2024