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 » LineEdit, EditFields, DocEdit » [HELP] Getting and setting values to EditInt
Re: [HELP] Getting and setting values to EditInt [message #36547 is a reply to message #36546] Wed, 06 June 2012 21:59 Go to previous messageGo to previous message
BioBytes is currently offline  BioBytes
Messages: 310
Registered: October 2008
Location: France
Senior Member
Hi Thiago_Costa,

Welcome to U++ forum. For new comers to U++, please note that a Newbie corner category is designed for beginners with Ultimate development tool.

Otherwise I suggest you store the 6 numbers in an Array:

Array<int> lotoNumbers;


I prefer it to Tab[] Wink

after that you could use the following code:

for(int i=0;i<6;i++)
   switch(i)
   {
     case 0 : edit1<<=lotoNumbers.At(O);
              break;

     case 1 : edit2<<= lotoNumbers.At(1);
              break;

     case 2 : edit3<<= lotoNumbers.At(2);
              break;

     case 3 : edit4<<= lotoNumbers.At(3);
              break;

     case 4 : edit5<<= lotoNumbers.At(4);
              break;

     case 5 : edit6<<= lotoNumbers.At(5);
              break;
   }



I am not sure that is exactly you are seeking for but try it and let me know. Razz

Cheers
____________________

Biobytes

[Updated on: Wed, 06 June 2012 22:03]

Report message to a moderator

 
Read Message
Read Message
Read Message
Previous Topic: Masking the password field in the login page
Next Topic: To add some methods to LineEdit
Goto Forum:
  


Current Time: Fri Jul 18 17:22:46 CEST 2025

Total time taken to generate the page: 0.03442 seconds