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 » Message from the system.
Re: Message from the system. [message #27124 is a reply to message #27123] Sun, 27 June 2010 01:34 Go to previous messageGo to previous message
koldo is currently offline  koldo
Messages: 3437
Registered: August 2008
Senior Veteran
Hello Javier

I fully support posts from dolik.rce and andrei_natanael. No problems with Ubuntu 10.04 and with XP.

In addition if you want multiplication results I would change

//double a=Scan(dialogo_datos.editar_a.GetText());


with

salida_result <<= FormatDouble(ScanDouble(dialogo_datos.editar_a.GetData().ToString())*ScanDouble(dialogo_datos.editar_b.GetData().ToString()));


This seems a little overcomplex. Choosing type EditDouble instead of EditField the code would be much simpler, just multiplying two numbers:

salida_result <<= dialogo_datos.editar_a*dialogo_datos.editar_b;


Try to use layout designer. It saves you non useful code. And point 3 is very important: After dialogo_datos.ExecuteOK(), window is closed but dialogo_datos data is there, nobody has deleted it. So just take the data.

I would never use EditField. I would use EditString, EditDouble, etc.


Best regards
IƱaki
 
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
Read Message
Read Message
Read Message
Read Message
Previous Topic: Usage of "new" and "delete" in U++
Next Topic: Problems when using layouts
Goto Forum:
  


Current Time: Tue Jul 15 19:28:19 CEST 2025

Total time taken to generate the page: 0.03441 seconds