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 #55016 is a reply to message #55004] Mon, 05 October 2020 04:51 Go to previous messageGo to previous message
BetoValle is currently offline  BetoValle
Messages: 204
Registered: September 2020
Location: Brasil Valinhos SP
Experienced Member

another related issue:

the editfield fld1 with "SetConvert" fld1.SetConvert(DateIntConvert())

is not receiving data according to the test code below:

void pkTestando:: onClick()
{
Date d = Date ( 2020, 1, 1 );
try
{
Value s = Format ( d );
LOG ( "data " << s );
fld1.SetData ( d );
}
catch ( ValueTypeError )
{
LOG ( "Failed Value conversion" );
}
}

but if he decides to remove condition "SetConvert" the field receives content normally.

What happens ?? or in the condition using "SetCovert" how do I have to write the code?

 
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 04:20:18 CEST 2025

Total time taken to generate the page: 0.03982 seconds