Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » how to make an editfield accept only number or date? have any examples in the documentation?
Re: how to make an editfield accept only number or date? have any examples in the documentation? [message #55029 is a reply to message #55022] Mon, 05 October 2020 17:43 Go to previous messageGo to previous message
BetoValle is currently offline  BetoValle
Messages: 204
Registered: September 2020
Location: Brasil Valinhos SP
Experienced Member
Well, I understood question # 2 only (you can disregard it). I was considering that the internal routines would do the conversion. But not. So I understand that when using a field and if associated with SetConvert in the numerical case, when shooting a value for this field in code, I will have to add a corresponding number between the difference of the desired date and the first of January 1970.

Question 1 remains and I believe that only you can clarify the reason for the Format function within another Format of the custom class, it generates an exception. Since the objective in this situation would be the instant that the value resulting from the SetConvert Format was automatically generated, internally the user could evaluate a String of the resulting date.

another problem that i see is that your example "SQLApp in Assembly examples", should not accept typing characters immediately after a valid date (i.e. 01/01/2020abcdef ...)
fld borrowed!

In the code I attached in the previous post i put in filter this content:

if (chr> 57)
{
return false;
}
and in layout MaxChar = 10
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message icon14.gif
Previous Topic: sqlarray and sqlite
Next Topic: How to load your GridCtrl in background thread
Goto Forum:
  


Current Time: Sun Aug 24 06:37:00 CEST 2025

Total time taken to generate the page: 0.03297 seconds