LizR 171 Posting Virtuoso

Well, thats a little ambiguous

if you have an array of things

such as

Thing[] mythings = new Thing[100];

you can access their methods just like any other normal variable but by adding the [n] option to say which of the objects you are using

Post a snippet of your code (use code tags), explain where its giving you an error and what, and what you expected..

LizR 171 Posting Virtuoso

Long as you add them as resources you can use them

LizR 171 Posting Virtuoso

It gets really tiring to see people who dont try and then expect others here to do the work. I know theres no date format that does the suffix, which is why I got you to look. If you google there are plenty of functions out there prewritten you can use to do it.

I too know theres no built in function to do it, it seems kind of a large oversight IMHO, but, there isnt. However, like most things like this, someone already has hit this and written something to do it. I got back a lot of hits with sensible code from google.

LizR 171 Posting Virtuoso

biggest problem you will have is when summertime kicks in (or daylight savings whatever its called where you are) as its not all done at the same time the world over.

LizR 171 Posting Virtuoso

So you didnt look.
and before you say you did..

I typed

DateTime.ToString("dd mm yyyy");
placed cursor on ToString
Pressed F1

Got help
Clicked on the datetime format string stuff

http://msdn.microsoft.com/en-us/library/az4se3k1.aspx

which has a second link to

http://msdn.microsoft.com/en-us/library/8kb3ddd4.aspx

You are just plain lazy

LizR 171 Posting Virtuoso

Take a read of the helpfile, there are many date/time formats, its very simple, but you should start reading for yourself what options you have.

LizR 171 Posting Virtuoso

if the white border is in the graphic, first thing Id say would be remove it from the graphic, if its not, you could consider programattically making the picture smaller..

LizR 171 Posting Virtuoso

I was trying to get you to look at the datetime functions for yourself to find the things like tryparse..

Perhaps you will now try and do a search on date time formats.

LizR 171 Posting Virtuoso

Have you considered that you are reinventing the wheel?
Perhaps there is a function of the datetime variety that will do all this for you..

LizR 171 Posting Virtuoso

Please search this forum, this has been answered a number of times before.

LizR 171 Posting Virtuoso

error 2 is caused by

string[] allData = sr.ReadLine();

Read what it says. It tells you what the ReadLine returns, and whats wrong with your line.

The first error is to do with your second error

LizR 171 Posting Virtuoso

No code tags?
Whats the error? symptom?


other than youve said pick is a char, and then asked if its 'flip1' as a string, so i guess it always says you lose.

LizR 171 Posting Virtuoso

Um, just like I showed :P

LizR 171 Posting Virtuoso

OK Ive seen worse, although you should check that your openConnection doesnt return null in your Main.

Socpe.. Scope is a little like a line of sight.

If i had

private void  Something()
{
  int i;
  i=5;
}

private void other()
{
  if (i==5)
  {
      Console.WriteLine("I is 5");
   }
}

It would fail because i is only visible to the first function.

Most likely you would only open a connection to your database once. You wouldnt repeat it, so while having a separate method is a good idea, for this is has no major reason.

However, your inserting of data section would have a point :)

LizR 171 Posting Virtuoso

OK do you know what "Scope" is?

LizR 171 Posting Virtuoso
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

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

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

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

LizR 171 Posting Virtuoso

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

LizR 171 Posting Virtuoso

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

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

Collect the data you want from however many sources you need to collect from, and place it in a single place (such as a CSV file) and merge.

LizR 171 Posting Virtuoso

is your project using the new 2.0 framework?

LizR 171 Posting Virtuoso

so you want to do a mail merge in effect, why not use office?

LizR 171 Posting Virtuoso

Crystal doesnt print access reports, it prints crystal reports.

LizR 171 Posting Virtuoso

Why run it as 2 queries, why not just run it as one?

LizR 171 Posting Virtuoso

So now you have 4 threads on the same subject. If you cant work out and reply to a one you already made, how do you realistically expect to learn to code?

You havent changed a single word of it, so it still doesnt make sense.

LizR 171 Posting Virtuoso

But thats not the question you asked. Please try some grammar, some punctuation, and real words. Please mark this thread and the other pointless one like it asking to put a control within itself, as solved, and stick with the thread about your data. Then, go there, explain what you want. better than you have here, as the above is not clear due to lack of readability.

LizR 171 Posting Virtuoso

You havent done that much reading then. make a data source in memory, and assign it to the datagrid view.

LizR 171 Posting Virtuoso

That makes no sense what so ever. You want to add something to itself?

LizR 171 Posting Virtuoso

thats normally why you bind the control to the table/query

LizR 171 Posting Virtuoso

But its not finding it. So, either its not looking where you think (use something like the FileMon from what used to be sysinternals, or, such) to check where its looking coz its not looking where your file is.

Of course it does tell you exactly where its looking but its worth checking anyway

LizR 171 Posting Virtuoso

it cant find your file to read in, thats the problem. Copy the car3.car into the debug directory of your new project

LizR 171 Posting Virtuoso

fileCount should be in single quotes. Its a string.

LizR 171 Posting Virtuoso

Then make the padding less :) or put your text on the left, and pad the arrow out

LizR 171 Posting Virtuoso

As I said, exactly the same way you do your select queries.

LizR 171 Posting Virtuoso

An update query should work the same - whats the problem ?

LizR 171 Posting Virtuoso

Perhaps ensure the service is stopped first?

LizR 171 Posting Virtuoso

God knows, Delphi 6 is exceedingly old. I dont have one kicking around installed to check. You could try reimporting them.

LizR 171 Posting Virtuoso

Then show us what you tried and why it didnt work.. *then* we will help you

LizR 171 Posting Virtuoso

I guess changing from the properties to events in the bottom right (by default) was missing..
So.. Im gonna take an educated guess you didnt tie the event to the method you made??

LizR 171 Posting Virtuoso

is that assigned to your forms keypress?

LizR 171 Posting Virtuoso

Then please mark this as solved if you have an answer.

LizR 171 Posting Virtuoso

I do too :P