LizR 171 Posting Virtuoso
LizR 171 Posting Virtuoso

Dont appologise for me, I didnt say anything offensive, except now having handed the person an answer theres a much greater chance you just made sure they dont learn and understand

LizR 171 Posting Virtuoso

Im sure if you took this to your teacher they would be more resonable than perhaps you made out.

If you read the notes at the top of the forum, we dont do your home work for you.

Rashakil and ddanbe both have highlighted exactly where your code goes wrong - perhaps if you debugged it and followed along with the data you collect it will be more obvious to you

LizR 171 Posting Virtuoso

Thats ok, read what I wrote, and you can a way to achieve that.
Try and code it, and when you struggle *then* we will help with code.

LizR 171 Posting Virtuoso

Well done. And whats better is is you almost certainly understand why you ended up with thec ode you did, rather than have someone hand you it.

ddanbe commented: This is going very well here... +4
LizR 171 Posting Virtuoso

Turbomen, do what you can, paste the code in, tell us what doesnt work or what error you get and we'll try and help you. Doing homework for you isnt going to happen

LizR 171 Posting Virtuoso

So. Each line of your file has a field, hopefully you can work out how to read the file into variables, then now you have an template for how to do the SQL, you need to work out how to add those values. As the values as they are in your post wont take the values from the variables.

But you're getting there.

LizR 171 Posting Virtuoso

No, all you needed was the while loop ....

LizR 171 Posting Virtuoso

Thats the joy of programming. *YOU* decide how it works.

me? I would use a counter, and when a thread starts, it adds one, when it finishes it decreases by 1, if its less than 5 and there are still filles to process, then, start new thread, if not, keep waiting.

How you decide which you have processed, again, up to you, you could use a stack and pop off each item you wanted, or a list, or mark an array, or use a counter..

Its up to *YOU*

LizR 171 Posting Virtuoso

Debug is your friend.

You need to find the parts it puts together eg:
Convert.ToChar(Col1)).ToString();
longRow1.ToString(), (Convert.ToChar(Col1)).ToString() ;
longRow1.ToString();

and then the overrall

axSpreadsheetASCIIop.ActiveCell.get_Range(
(Convert.ToChar(Col1)).ToString() + longRow1.ToString(), (Convert.ToChar(Col1)).ToString() + longRow1.ToString()).Value2

LizR 171 Posting Virtuoso

then HttpWebRequest *IS* the answer, but you just have to do a little more work as by default the only thing you get is the file you requested, you'll have to work out what else you needed to download

LizR 171 Posting Virtuoso

Have you worked out the SQL you would need to run to put the data into your table?

LizR 171 Posting Virtuoso

ppraj, your last post has no point. You were the last to answer before me, I said something your response is clearly not in relation to that, so what was the point?

LizR 171 Posting Virtuoso

Then dont use the .Text but the selected item... and yes I know you had an error before but it was the right thing just in the wrong way

LizR 171 Posting Virtuoso

Does it work or not?

LizR 171 Posting Virtuoso

Well if its a resource its available, to use (use google) so all you would need to do is write either a console or windows form based app that asks them for password etc, and then where to save the file

LizR 171 Posting Virtuoso

You cna add the item as a resource to your application, however displaying it, maybe more complex if the user doesnt have the facilities to decrypt or use a relevant app to display it. That would be the bigger stumbling block.

LizR 171 Posting Virtuoso

A reason to use get/set is so that your class contains control over the input

For example

Exam results shoul dbe between 0-100

No exact type exists to hold only 0-100, so, if the class has a set which validates the data, it cant ever have an issue where the data has been rigged

Rashakil Fol commented: yes +9
LizR 171 Posting Virtuoso

And in debugging what was the value of say "bunitsCB.Text"

LizR 171 Posting Virtuoso

ignore - dup

LizR 171 Posting Virtuoso

Best answer would be to recursively get a list of files, and pop the filename in a list

Then have a class which spawns say 5 threads max, and processes the file, so you dont thrash the heck out of everything but also achieve a realistic effect

LizR 171 Posting Virtuoso

by the looks of your code it should be doing that.

LizR 171 Posting Virtuoso

pretty much. Although you can tell it to generate only 1 .cs file with the form generated within it.

LizR 171 Posting Virtuoso

The reason the value was relevant is that was probably the URI it complained on.

LizR 171 Posting Virtuoso

well they can only update the record if your code lets them, so in your code allow them either to only hit save if the flag is not set, or, only run the save code if the flag is not set..

LizR 171 Posting Virtuoso

Show some code, show the line with the error, show what you tried to do to fix it

LizR 171 Posting Virtuoso

other than no code tags, using a listbox would work.
So, now you should see what events are triggered when, and know the reason for your first problem..

LizR 171 Posting Virtuoso

show me

LizR 171 Posting Virtuoso

What is the value of Server.MapPath("xmlfiles/deneme.xml")

LizR 171 Posting Virtuoso

have a try first..

LizR 171 Posting Virtuoso

The only thing that will help you is your own motivation. There are many free tutorials, and cheap ones out there that aree good but all depends on what suits your learning style..

LizR 171 Posting Virtuoso

At which line does it complain?

LizR 171 Posting Virtuoso

then do 1 simple if statement.

LizR 171 Posting Virtuoso

Well. What have you tried, and in what way didnt it work (please show code in code tags)

LizR 171 Posting Virtuoso

Why not find out what order they fire in, and when. take a text box, and a combo box, and assign an append line to the text box for each event in the combo box.

(you will need a multiline text box)

LizR 171 Posting Virtuoso

thats coz you're using the wrong event

LizR 171 Posting Virtuoso

fairly open question there, depends so much on how and what ..

LizR 171 Posting Virtuoso

Wow, did you really just ask that?
So you in your code you only now how to add things up and set values?

LizR 171 Posting Virtuoso

Well, google will perhaps help you in finding things in strings. There are a number of options you could use..

LizR 171 Posting Virtuoso

because \ treats the next character as litteral/escape so \\ actually would be \ in reality

LizR 171 Posting Virtuoso

Its a bad habbit to use gotos without purpose (which that would be)

simple answer

Make a method

when you need it, call the method, wether its from that action or from your other code.

LizR 171 Posting Virtuoso

As its your homework, why not ask your professor? If you havent followed the question any advice we give you could be wrong on the grounds it could be the teacher has felt they explained and we might say something in contradiction.

LizR 171 Posting Virtuoso

So. Whats your specific problem? You've told us the homework question, you have some code.. What problem specifically are you having?

LizR 171 Posting Virtuoso

Whats wrong with the other question you already have a thread on this subject for?

LizR 171 Posting Virtuoso

Please use code tags - that code is hard to read correctly without - and its so simple to put them in.

OK, your code is unclear if nothing else because you have a test to see if dunitsCB.Text says english or not..

You then switch on dieunitsCB.Text or dieunitsCB.Text (eg the same thing) to produce different answers. Its confusing as you have 3 different tests for "English" making it confusing.

So, your problem seems to be you want to complain if neither English or Metric arent selected - why go through all that hassle, why not just test that this is not the case and "do something"

LizR 171 Posting Virtuoso

What have you tried?

LizR 171 Posting Virtuoso

No, no code. You havent demonstrated what you've tried, why should someone else do it for you?

You show us your code, you tell us where your debugging says it goes wrong, and we'll help you try and work out why

LizR 171 Posting Virtuoso

No worries. Im glad you fixed it. Plus, you worked out why it wasnt working I didnt tell you why not, good for you! :)

LizR 171 Posting Virtuoso
for (i = 0; i == 8; ++i)
            {
                coinsamount[i] = pence / coins[i];

                pence = pence % coins[i];
                
            }

Think of the for loop as a while loop

it starts as i=0
then while i==8
it i++

so

now you should see where it goes wrong

LizR 171 Posting Virtuoso

Well other than this is NOT a java forum, this is for c# and theres a .net web forum too.. The first thing is that you would have to use some form of ajax type thing as you would need to ask the db if the usernames there - but best advice, ask in a more apprioriate forum.

Rashakil Fol commented: He didn't mention Java. -2