![]() |
any C# programmers on here?
Please disregard the two For Statement they're wrong and outputting multiple ListID entries of the same thing. That's the problem and I need help fixing it. The MakeReq function has nothing to do with my problem its just holding values like an array does.
Code:
if (listId.Items.Count != 0 && listCell.Items.Count != 0) store.domain.com 101 &ire=1 sec01 store.domain.com 102 &ire=1 sec02 store.domain.com 103 &ire=1 sec03 store.domain.com 104 &ire=1 sec04 store.domain.com 105 &ire=1 sec01 store.domain.com 106 &ire=1 sec02 <- ^ notice how listCell started over for the last two entries. that's because listCell only has 4 entry so it continuously loops applying secIDs until all ListIDs have been processed. So there maybe 500 ListID and only 20 listCell secIDs, which means listCell will just loop within itself applying the same secIDs from the top of its list down, again and again. it's a simple concept, but you won't believe how many C# programmers are clueless as to what i'm trying to accomplish. |
here you go, just remove/replace the temporary stuff w/ your stuff
Code:
something id1 cell1 something id2 cell2 something id3 cell3 something id4 cell4 something id5 cell1 something id6 cell2 |
I failed at c++ at university :(
|
Tical beat me to it.
|
tical THANK YOU! ... been at this for over a week.
another question is System.Threading.Thread.Sleep() the best method for pausing/sleeping? I used it earlier where trying to debug and it felt like it was hang the app. |
Quote:
If you're calling something like: void dowork { // some code // loop w/ sleep // other code } Then "other code" won't execute until the loop w/ sleep is done, so if there are a ton of listids then it might seem like it's lagging. Plus your form is going to get "stuck" during each sleep iteration. If you want to have it run in the background without having that error. Then do something like this: void listidloop { // your loop code w/ thread.sleep, etc. } and in the function you're calling it from (form or other class): Thread t = new Thread(listidloop); t.Start(); That way it operates in a separate thread and doesn't lock up your form. The problem here is if the listidloop function is trying to update the form form (ie, textbox1.text = "", etc) then you're going to get a cross thread error and will need to use delegates/invoking for this. |
Quote:
|
am i doing this correctly, trying replace the pre-loaded entries from your example with my actual listboxs for loading/processing
Code:
List<string> listId = new List<string>(); |
Quote:
Something like this, my sytax may be off a bit... but it should be clear! Hope that helps Code:
int listCellCounter = 0; |
Remember when you copied my webcam page and left my counter code on it? That was some funny shit.
Still got that BMW you did all the custom work to? |
Asm programmer for Z80 processors here :pimp
|
Quote:
|
All times are GMT -7. The time now is 03:15 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123