Recent

Author Topic: Components which limit the max. amount of data entered  (Read 1223 times)

dietmar

  • Full Member
  • ***
  • Posts: 170
Components which limit the max. amount of data entered
« on: September 25, 2021, 09:53:40 pm »
Hi,

sorry, the daily bothering guy once again ;)

Are there any components out there in which I can limit the max. amount of data entered?
I want this to make sure entered data in fields (e.g. "Edit") are not bigger than the amount I set up in the corresponding database where I want to save the stuff.

Thx!

--Dietmar
Lazarus 2.2.0RC1 with FPC 3.2.2 (32 Bit) on Windows10 (64Bit)

paweld

  • Sr. Member
  • ****
  • Posts: 312
Re: Components which limit the max. amount of data entered
« Reply #1 on: September 25, 2021, 09:59:33 pm »
SpinEdit, FloatSpinEdit from Misc tab
SpinEditEx, FloatSpinEditEx from LazControls tab - possible to hide a updown buttons
Best regards
paweld


GAN

  • Sr. Member
  • ****
  • Posts: 338
Re: Components which limit the max. amount of data entered
« Reply #3 on: September 25, 2021, 10:06:41 pm »
I use JujiboUtils.
Lazarus 2.0.8 FPC 3.0.4 Linux Mint Mate 19.3
Zeos 7̶.̶2̶.̶6̶ 7.1.3a-stable - Sqlite 3.32.3 - LazReport

https://searchlazarus.blogspot.com/

wp

  • Hero Member
  • *****
  • Posts: 9024
Re: Components which limit the max. amount of data entered
« Reply #4 on: September 25, 2021, 11:01:01 pm »
I want this to make sure entered data in fields (e.g. "Edit") are not bigger than the amount I set up in the corresponding database where I want to save the stuff.
Every TEdit has a MaxLength property to limit the count of characters which can be typed.
Mainly Lazarus trunk / fpc 3.2.0 / all 32-bit on Win-10, but many more...

 

TinyPortal © 2005-2018