...-.
...-.
Last edited by F1ow; 28-10-14 at 04:44 PM.
If I'm not mistaken, you get the error because you have 1 dimensional array.
It may look like with 2 but it is 1 dimensional, which contains another 1 dimensional.
You would need to ask the column amount from the row.
rows[i].GetLength(0);
If you declare like this:
string[,] rows;
Then you can ask rows.GetLength(0); and rows.GetLength(1);
It may be wrong, too lazy to test, i'll leave it to you.
As for the parser, it may seem to work at first, but it isn't foolproof. There is a small thing, when it will fail :P
Found on my SSD:
https://mega.co.nz/#!BVxnjSwR!Oynn5U...oO87q9laqEcfRM
Nope, it's a list containing arrays of strings. This list is converted to an array using ToArray(). When i call rows[10][10] it works, so the array is twodimensionel. But you brought me to an idea: Maybe GetLength() method is only for arrays like string [,] and doesn't work for string [][].
But as far as I know, these two are quite the same.
If you define like this:
1. string[][][][][] UberArray = new string[6][][][][]();And the indexes for the GetLength() method:
You can have an uneven arrays.I'm not going to initialize something like that, as this will be 4 loops inside each other, and all of those can have different array lengths.2. string[,,,,] UberArray = new string[9,8,7,6,5]();
You will have static 5-dimensional array.
1. UberArray[0][0][0][0][0]
UberArray.GetLength(0) -> 62. UberArray[0,1,2,3,4]
UberArray[0..5].GetLength(0) ->
UberArray[0..5][0].GetLength(0) ->
UberArray[0..5][0][0].GetLength(0) ->
UberArray[0..5][0][0][0].GetLength(0) ->
Here aswell, all of those requests depend how long is the array and which index you ask
UberArray.GetLength(0) -> 9
UberArray.GetLength(1) -> 8
UberArray.GetLength(2) -> 7
UberArray.GetLength(3) -> 6
UberArray.GetLength(4) -> 5
Okay, got it now. Thanks.
Just a small update to fix some major things and add some other small improvements/edits.
Update 4.0.14.0801:
- Made Go To function update current row position.
- Column bulk edit, deletion, divide, multiply and rename no longer closes when you click ok.
- SHN files with blank columns are now loaded with a default unknown column name.
- Empty cells are now saved as empty cells, without error.
- The full version number is now shown in the window text.
- Replace function now checks cell value instead of object data.
- Fixed extensive loading time of large shn files, reducing loading times by 88%.
Download: http://www.mediafire.com/download/cc....0.14.0801.exe
This is currently what is on my to do list:
To do List:
- Add CSV importing.
- Add XLS importing and exporting.
- Fix/improve item editor.
I'm not sure if I should add these features.
Unsure
- Exp Rate Editor (You can just use the column multiplier tool).
- Item creator (Makes people mentally lazy and has a potential of increasing bugs and troubleshooting issues when adding items).
Last edited by fiestanerd69; 02-08-14 at 02:39 PM.
Here is an idea for time saving and the hassle. Why not give an option to Auto-number the index numbers.
- Make it so when u select rows, u can do shit based on that selection. Selected Rows -> mass column edit. or something of the like.
- Find/replace dialog revamp
- option to auto sort ID's by number (instead of totally reindexing them)
Maybe add the ability to open shine tables (text files) (Both table formats look similar idk if its all that different) idk what the deal is.
But um. I know enough that there's easily some ways to implement some of this stuff with the default form components. Is it a listview component? idk
Last edited by unstopable32; 05-08-14 at 07:43 PM.
It's just nice when the text file is all fucked up, u just open it in shine table or in uh excel and it is fixed. Excel and uh sublimetext <3 ftw
and uh, haters gonna hate. like cmon how can u resist dah shine tablez...SHINE BABY SHINE lol ;). But seriously add the ability to mass column edit selections and i'll donate.
why dont use the lasted one?could share the source?thank you!
Its just me or anyone is having this issue to?
![]()
@Davieshaffer I am not sure why you're getting that error, can you provide some more information as to why it could be occurring so I can fix it, thanks.
Update 4.1.14.0814:
- Remade search function.
- Removed column refresher for search form.
- Search form now saves upon exit.
- You can no longer click away from search form window.
- Added search form search parameters: contains, equals, starts with and ends with.
- When you first open the search form the data grid view will be populated.
- If you search with an empty search field, it will reset your search.
- The replace window is no longer be the top most window.
- All buttons (i.e functions) in the replace form now check cell value instead of object data.
- Turned on WS_EX_COMPOSITED for main form and search form, making loading smoother.
- Search form now takes you to the cell you selected on the main form.
- Search parameters are loaded if any were set previously when searching.
- The search form no longer resets your currently selected row when opening/closing.
- Now when dragging in files it will add them to your recent list.
Download: http://www.mediafire.com/download/bt....1.14.0814.exe
Last edited by fiestanerd69; 14-08-14 at 02:48 PM.
Can't save files anymore (4.1.14.08.14)
http://prntscr.com/4cs77v
("Save As" still works. But not "Save".)
@William Thanks for informing me of this, seems to have been occurring for the past few revisions now.
Update 4.1.14.0815:
- Fixed save function.
- Search form will no longer take you to the row selected in the main form.
Download: http://www.mediafire.com/download/cl....1.14.0815.exe
I still see people download other versions, 3.9 being the most popular other than 4.0. Is there a reason as to why, for example there is something in the newer version people don't like or maybe a bug? Let me know so I can fix it and update it. :)
Last edited by fiestanerd69; 15-08-14 at 01:22 PM.
Fix one thing break another. *face palm* Broke the search function, so here is the fixed version.
Update 4.1.14.0816
- Fixed save function.
- Search form will no longer take you to the row selected in the main form.
- Turned off WS_EX_COMPOSITED for main form.
- Fixed search function, seemed to have been broken after I added the numbers "00:".
Download: http://www.mediafire.com/download/km....1.14.0816.exe
dont.runing,xd
plz ,share the source, Let's develop the soft together,thank you very much!
Version 4 not working..
Something in the Main Load Form is wrong.
I think set the default encode or something don't work or something on registry side.
Update 4.2.14.0817:
- Fixed encoding type registry issues.
- Fixed search form resetting main form datagrid issue.
Download: http://www.mediafire.com/download/75....2.14.0817.exe
Thanks to @Canic for letting me test some stuff on his PC. The problem that @Canic, @oodasm and @Davieshaffer were having should be fixed in this update.
Also @F1ow I looked at your code, thanks for posting it for use, but I think I will write a more efficient and better solution when I have more time.
Last edited by fiestanerd69; 04-09-14 at 09:10 PM.
crash,xd
![]()