Forum > General
Parsing ip string within a TextBox
jolix:
Hi
I have a TextBox that i need to modify or fill contents wich is an ip like '192.168.1.10' or other.
I google it and find nothing, just a few words about it.
Exists any way like a filter ###.###.###.###
I already have a code doing it with a state machine inside of OnEditingDone but i want it running in realtime, i mean, auto correction while writing.
Certainly this is done somewhere and thus, while reinventing the wheel?
Regards,
jolix
BlueIcaro:
Try use OnChange Event
/BlueIcaro
theo:
You could use a TMaskEdit with EditMask like
!099.099.099.099;1;
jolix:
--- Quote ---Try use OnChange Event
--- End quote ---
BlueIcaro, i already try use code to parse inside of OnChange, but i realize the code needed results very extensive.
So i will try some cooked thing like TMaskEdit as Theo suggested.
Regards,
jolix
jolix:
Hi,
I try EditMask with unexpected results:
1. Setting Mask to 099.099.099.099 Lazarus don't compile at all.
2. Setting Mask to 999.999.999.999 Lazarus compile well although the result is not perfect as i expected.
For the case 1, the object inspector shows me:
Property Text: _99._99._99._99
and SpaceChar: _
Any suggestion?
Regards,
jolix
Navigation
[0] Message Index
[#] Next page