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 » U++ Library support » U++ Core » Format function conversion specifiers and EditDate widget
Format function conversion specifiers and EditDate widget [message #2077] Fri, 31 March 2006 13:31 Go to previous message
gprentice is currently offline  gprentice
Messages: 260
Registered: November 2005
Location: New Zealand
Experienced Member

Is there a description anywhere of how Format works?
What does the %` do in the code below?
What does ~date1 return?

void Days::Compute()
{
    result = IsNull(date1) || IsNull(date2) ? "" :
             Format("There is %d day(s) between %` and %`",
                   abs(Date(~date1) - Date(~date2)), ~date1, ~date2);
}


The code is from the days example on the website. Which Date constructor is used - the copy constructor ???

(Should I be able to find this info in the help?)

Graeme


 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Hashes in U++
Next Topic: What is lock for in MenuBar etc. classes? -[SOLVED]-recursive call
Goto Forum:
  


Current Time: Sun May 11 15:46:47 CEST 2025

Total time taken to generate the page: 0.00672 seconds