LizR 171 Posting Virtuoso

Hope you enjoy the spam you'll get for posting your email on a bulletinboard readily searched by search engines.. Spammers are gonna love you.

Failing that you could start a new thread with your new question and explain it clearly, and more usefully explain the reason why you cant work it out.

LizR 171 Posting Virtuoso

Please do a search on the forum. There are more than plenty examples of opening spreadsheets - and how to get/use data within them

LizR 171 Posting Virtuoso

In your first code, the first function never called your second.

Perhaps you need to put down more on paper how your brain thinks this will work.

LizR 171 Posting Virtuoso

debug :)

LizR 171 Posting Virtuoso

Yep, so whatever you use to make your installer should be told to always overwrite those files newer or not.

LizR 171 Posting Virtuoso

I thought lowercase was 65.. all the same, whatever :)

LizR 171 Posting Virtuoso

As I said, your F1 key has all the answers, it has examples of connecting to SQL, as well as how to maniuplate data and queries.

LizR 171 Posting Virtuoso

That might not necessarily work.

AED would = BCF

33+37+36 = 106
34+35+37 = 106

Only true way is to sort them and compare them.

LizR 171 Posting Virtuoso

If you sorted them into alphabetical order you'd be able to tell if they were the same or not.

eg

ABA gets sorted to AAB

LizR 171 Posting Virtuoso

Thats why you make an installer that will auto install those things if you need to.

LizR 171 Posting Virtuoso

Good god, no offense but that sounds as lazy as it gets

Outlook.Application app = new Outlook.Application();
Outlook.Selection oSel;
Outlook.Explorer oEx = app.ActiveExplorer;

oSel = oEx.Selection;

Object oItem;

oItem = oSel.Item;
if (oItem is Outlook.MailItem)
{
  Outlook.MailItem oMail = (Outlook.MailItem)Oitem;
  label1.Text = oMail.Subject;
}

all you had to do was paste in the info given..

LizR 171 Posting Virtuoso

But VB is lazy and allows you to do hiddeous things like adding characters and integers and setting strings to numbers if you let it. That doesnt make it right.

if you declare object as o you could test if o is Outlook.MailItem that seems to work.

LizR 171 Posting Virtuoso

Because (DUH) Object is not an outlook class that has that property.

LizR 171 Posting Virtuoso

In your code above, "Outlook.MeetingItem item" as long as you called item.MessageClass you would be ok.

LizR 171 Posting Virtuoso

Its a string, it will give you in words the type.

PS - just like in the vb example you posted

LizR 171 Posting Virtuoso

While having it in a separate function is best

Create a boolean variable, remove the returns and in their place, put the boolean variable = true or false accordingly.

Then move the whole block into the first and test the value of the boolean at the end as to wether it was true or false.

LizR 171 Posting Virtuoso

OK, but that will pick up only meeting items, as you cant assign mail items to a meetingitem, it will cause an exception. the messageclass property is text and will confirm then which subtype of the item you picked is, such as out of office etc.

LizR 171 Posting Virtuoso

Sure comes as part of the F1 help key.

LizR 171 Posting Virtuoso

PS now Im home, My indy has the property I listed. Please check again

LizR 171 Posting Virtuoso

It shouldnt matter what the device is, the problem is you cant always reliably test which way your data travels - as in a lot of situations where you maybe have wireless and wired, the network IP range for both is the same, as a result it may not always leave the card you think.

However as a general rule - assuming 2 different networks, you would need a point on each of the given networks that you can use to test speed to - wether thats web, ftp or something you write yourself.

LizR 171 Posting Virtuoso

Try your current code on a non password protected file and it should work.

LizR 171 Posting Virtuoso

Frirstly, Im not male. Please do not make such rash assumptions.

Secondly, Ive asked for some code as it would seem you've approached it very differently from me as all items correctly report their code for me, and perhaps you're going about it the wrong way.

LizR 171 Posting Virtuoso

I cant see your installer, it would need to deploy the file, and save it to the correct location. Only you can work out why that doesnt happen.

LizR 171 Posting Virtuoso

You dont appear to have told it to use the basic authentification.

IdHTTP1.Request.BasicAuthentication := true;

Assuming its popping up with a standard html login dialog box, not some web based login.

LizR 171 Posting Virtuoso

Accessing mails from outlooks inbox is generally quite simple and mine seems to pick up the differences. What code do you have as while I didnt derrive mine from that vb, mine uses pretty much the same concept.

LizR 171 Posting Virtuoso

Sadly, no it doesnt explain it very well.

How about you show us what you have and explain why/how its not doing what you thought the code should.

LizR 171 Posting Virtuoso

Your installer should overwrite the file, giving them the option of course to keep the old one if they are really sure they want to

LizR 171 Posting Virtuoso

Well, wether you are new or not, it seems like you should be putting some effort in to at least have a try. Take a look at the files included, you tell me what you think and why it doesnt work.. and I'll try and help you fix it.

PS sending me a private message with exactly the same information is both rude and unncessary.

LizR 171 Posting Virtuoso

Are you creating the data to put in the treeview or is it some predefined stuff too?

In being able to explain the problem carefully, it would more likely explain the answer to you too.

LizR 171 Posting Virtuoso

Then using tcp rather than udp alone would at least be a huge advantage, you dont *have* to use webservices.

LizR 171 Posting Virtuoso

Check code central, or colin wilsons site.

LizR 171 Posting Virtuoso

Biggest problem with udp is theres no guarentee it will get there - you would do far better to use tcp, so packets arrive in order, and are guarenteed to succeed or fail you can test both ends that they got there.

LizR 171 Posting Virtuoso

Out of interest if you dont set it to maximized, but change the size does it work then?

LizR 171 Posting Virtuoso

Because somewhere then you have another system.pas and its upsetting that project.

LizR 171 Posting Virtuoso

They come with indy..

LizR 171 Posting Virtuoso

Um, if its not running directly in the users session then it wont have any mapped drives - as its not the same.

LizR 171 Posting Virtuoso

Please mark as solved then

LizR 171 Posting Virtuoso

on form startup check the current cell location

LizR 171 Posting Virtuoso

regex is the easiest way to split it, theres many examples on how to split up html using regex out there.

LizR 171 Posting Virtuoso

k, make sure you remove all the .dcu's and stuff too

LizR 171 Posting Virtuoso

Well..

void DataInit(myclass data)
{
if (data!=null)
{
  txName.Text=Data.Name;
  txtAge.Text=Data.Age;
  txtAddress.Text=Data.Address;
}
else
{
 txName.Clear();
txAge.Clear();
txAddress.Clear();
}

}

There are a ton of alternatives.

For example, to be honest, you could make the form part of the data class, as its going to display it, you could make the data a property on the form and when it changes it knows to update the form..

A fickle instructor is a *good* thing.

Now, the way Ive suggested is semi OK, but obviously its not going to return the data to your form. If you want that you could of course pass by reference.

LizR 171 Posting Virtuoso

No, no need for any loop in that code. Your code isnt going to do what I think you wanted it to.

LizR 171 Posting Virtuoso

OK, first thing to note, error insight is a liar. It can often found to be so.

Now, the error you're getting implies you may have more than one system.pas, you mention you have 2 copies, what happens if you rename the one you have in your project directory? to something else say system2, and leave your uses clause as it is, does the problem go away? Having the wrong versions of system.pas when moving to a unicode compiler from a non unicode compiler is probably a bad thing and I cant see why you'd need it.

LizR 171 Posting Virtuoso

debugging would show wether your mail settings are being picked up for your new smtpclient. If not, it maybe better to set them.

LizR 171 Posting Virtuoso

Well. A form is an object like any other object in c#, and you have many options. However, lets assume you're going to make a phonelist holder of your friends. On the main form you want a list maybe of names, so you can quickly find the person you're after. The second form holds more details, such as address, phone number, date of birth, stuff like that.

If you make a class to hold all that data, you can pass it as a single contained lump much like handing a cup of coffee over, you dont ask someone if they want one, and then hand over 1 cup a handful of hot water, ground stuff, maybe a dribble of milk and some sugar do you?

Then what you can do is setup a function to call in your second "details" form, where you send it the class as parameter, which can then populate the details form, and everyones happy.

LizR 171 Posting Virtuoso

But your search2 only asks "if (search == StudentTotal.ToString())" debug it watch the values. This will hold the answer

LizR 171 Posting Virtuoso

OK, so thats a good sign. Most likely then theres something wrong with the project you loaded, or..

You sure those werent the error insight errors and they were actual compiler errors?

LizR 171 Posting Virtuoso

Normal coding practice would be make the form for when you want it, and then free it - as a result next time you make it, it will be as it was in the beginning.

Otherwise you need to make a reset function on the form that puts everything back.

LizR 171 Posting Virtuoso

yeah but when my email arrives and it just says <name> has replied in the thread "hi" *I* have no idea which one!! until Ive re-read it a bunch

LizR 171 Posting Virtuoso

sivak, please, next time you start a thread can you give it a meaningful title so we can tell it apart from the others, this one would have been perhaps called "What are webservices for?"