|
|
Home » Extra libraries, Code snippets, applications etc. » U++ users applications in progress and useful code snippets, including reference examples! » Getting data in a row of ArrCtrl
|
|
|
|
|
|
Re: Getting data in a row of ArrCtrl [message #2207 is a reply to message #2194] |
Tue, 04 April 2006 01:08   |
 |
fudadmin
Messages: 1321 Registered: November 2005 Location: Kaunas, Lithuania
|
Ultimate Contributor Administrator |
|
|
forlano wrote on Mon, 03 April 2006 20:22 | Dear U++ Mate,
1. here I am with another question to waste your time and test your patience limit .
...
2. Vector<Value> ReadRow(int i) const
and when the strange sign '<...>' appeared everything became dark . Does anybody know how to retrieve the data in the row?
...
3. Another observation: I tried the code
arr.NoDuplicating();
I believed it could prevent a new row equal to one already present in the array. I added 10 identical rows and nothing happened. Is it correct?
Thank you,
Luigi
|
1. if it's about me, and if you want to reach my patience limit you should post, I think, more than 50 messages per day... So, it's plenty of room... Quite opposite, I'm not happy when you are progressing not fast enough... Also, having in mind, that from the beginning of May till late Autumn, I guess, my visits here will be much more limited. So, use the chance... 
2. Don't worry about the signs <...>. Learn like a woman to drive a car... How many of them can drive but are completely lost if they look at the engine... You have seen how easy was to make use of the designer... And ask questions like this :
Quote: | how to retrieve the data from the array row?
|
Or try to formulate even better.
In fact, in most cases, proper formulation of your questions quite often suggests half the answer, if not the whole.
People, who can't properly formulate their questions, first of all, limit their learning speed, and second, limit their chances to recieve the proper answers quickly.
3. arr.NoDuplicating(); -if anything doesn't work, you should always look at the sources first. (in this case ArrayCtrl.h and ArrayCtrl.cpp.)
And to get there quickly use Alt_J and Alt_I !!! For me these are the most useful shortcuts in the whole U++!!! Learn them (be prepared for surprises... )!!! Just don't forget to put editor's cursor inside the word!
|
|
|
|
|
|
Re: Getting data in a row of ArrCtrl [message #2217 is a reply to message #2208] |
Tue, 04 April 2006 10:38  |
 |
forlano
Messages: 1207 Registered: March 2006 Location: Italy
|
Senior Contributor |
|
|
fudadmin wrote on Tue, 04 April 2006 01:34 |
Btw, there is an easy possibility to edit cells directly in the ArrayCtrl like in spreadsheets... Maybe it's better to use those edit fields only just for searching. Just an idea...
|
It is a great idea. So far I was implementing what already existed with the old GUI where I hadn't a worderful arrayctrl.
Really this simplify the thing. I must add a row after each ADD_Player click and can't be empty line. If you have some guideline I can try it.
Quote: |
Btw, why don't you want to use xml format?
|
Excuse me , , XML to do what? (I know very little, just its name, about it)
Quote: |
Also you need kind of a record structure (format)? column and rows delimiters?
|
At some moment I need to read all the cells of the array and get the information for all players. These finish in some record structure mantained in memory. By the way, has U++ some internal database? In this case I can use it and dismiss my structure. It could be useful for sort operation with respect to field 'date', 'name' and someother integer based. I'm thinking (dreaming) to click on a header and a sort is done with respect that field (I can die after that ).
When I need to save the data the records finish '\n' delimited in a txt file in which each datacoloumn is separated by a ';' delimiter. As you see there is nothing sophisticated because fondamentally it is not a database application.
I'll try to use the chance you give me . Unfortunately on next Friday I must take a pause of one week... but after that I'll run at the speed light
Thank you!
Luigi
|
|
|
Goto Forum:
Current Time: Sun Apr 27 15:19:10 CEST 2025
Total time taken to generate the page: 0.05493 seconds
|
|
|