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 » [SOLVED] Empty values to the "EditInt" widget and the "int" basic type
Re: Empty values to the "EditInt" widget and the "int" basic type [message #52591 is a reply to message #52589] Fri, 25 October 2019 08:35 Go to previous messageGo to previous message
koldo is currently offline  koldo
Messages: 3361
Registered: August 2008
Senior Veteran
Dear Frank

It is simple. U++ uses a special value for all usual types, U++ classes and some most used C++, that is Null.

If you have an EditInt and you want to know if it is empty or not, just do:
if (IsNull(myEdit))
	Exclamation("Please enter a number");

IsNull() function is the way to test if a variable is Null.
If you look in U++ sources and examples, you will find tons of IsNull() Smile


Best regards
IƱaki
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: [solved] U++ TheIDE integrated debugging tutorial ?
Next Topic: [solved]An U++ equivalent of bzero ? (if not a sin)
Goto Forum:
  


Current Time: Sat May 11 14:36:10 CEST 2024

Total time taken to generate the page: 0.03109 seconds