LizR 171 Posting Virtuoso

I guess google was too much to ask too, www.indyproject.org

LizR 171 Posting Virtuoso

Was it in a form? or was that a console app?

LizR 171 Posting Virtuoso

Look up shellexec

LizR 171 Posting Virtuoso

You should have the examples, however, you could download them from the indys website as per the readme in the indy directory under your demos.

For server and client socket raw from delphi, there are a number of examples on code central. And in fact theres a tutorial on there for those 2 components.

LizR 171 Posting Virtuoso

Have you checked the examples that come with Indy - and delphi itself?

LizR 171 Posting Virtuoso

only if your java code can be run from the equivelent of a command line then you can just call that from pascal.

LizR 171 Posting Virtuoso

Sivak, your post has nothing to do with this thread.

LizR 171 Posting Virtuoso

thank you for sending me a private message for which I didnt want.

Please use google, there are countless examples out there..

LizR 171 Posting Virtuoso

Because all your thread does is tell the main form to do stuff, and loop - it itself doesnt do the work.

What you should have done was put all the sleep etc in the threadtask, and have an invoke to update the progress bar with a new value.. and only that.

LizR 171 Posting Virtuoso

If you looked at the line of code its complaining about, its very true.

if (cn.State = ConnectionState.Closed)

Your code is incorrect - please use code tags next time.

LizR 171 Posting Virtuoso

If you have an auto incrementing number, you've just described exactly what it is supposed to do, it does not reuse numbers. If you want it to fill in the holes, then you would need to not use an auto increment, and do a routine that works out the holes in your numbers list to find which numbers it can put in.

As for the key being 000001, that comes down to formatting.

Neither of these is specific to c# or SQL 2008

LizR 171 Posting Virtuoso

Do you need to know if any of the inserts failed?

Eg if you submitted them as a single block of multiple inserts would it be an issue?

LizR 171 Posting Virtuoso

But you've been running it so, there shouldnt be syntax errors

LizR 171 Posting Virtuoso

yes - its in there, you know it is or it wouldnt be happening.

LizR 171 Posting Virtuoso

i guess the obvious imagelist1.images list escaped you?

LizR 171 Posting Virtuoso

OK, but thats a propriatary format, you'll need to see what data outlook actually sends you when you perform the action and work from there.

LizR 171 Posting Virtuoso

Put a break point on the first line in your data retrieval code
Add a watch to the value of the data returned eg buffer
Step through the code.

Most likely the issue is the value of buffer, if not, make a dummy app and play around with string functions till you find the one you want and how to use it

LizR 171 Posting Virtuoso

I still think simple debugging will highlight the problem quickly.

LizR 171 Posting Virtuoso

if you're populating the spreadsheet, the only thing thats going to open it to allow automation of filling it in, will be excel. So yes

LizR 171 Posting Virtuoso

Would be best to ask them that.

LizR 171 Posting Virtuoso

I got a PM from b007 saying this is his school project.

so b007, other than I dont like people who PM me to try and get me to help them more than I already was, read the stickies, we wont do it for you and if you picked this as your project, ask your professor a lot of the questions.. As it seems you are stuck on design.

LizR 171 Posting Virtuoso

what file extension does it have?

LizR 171 Posting Virtuoso

then somethigns locking the table not just a record - what code do you have?

LizR 171 Posting Virtuoso

first thing Id ask is why reinvent the wheel when theres a bunch of stuff to already do it, and you clearly dont know where to start.

LizR 171 Posting Virtuoso

Pretty much none :) other than maybe some buttons if you really want them

LizR 171 Posting Virtuoso

If you want a web front end, then it wont be client software - the web browser handles it all, otherwise you're just making effort for yourself.

I believe I covered the rest in my first post.

LizR 171 Posting Virtuoso

Read http://en.wikipedia.org/wiki/Pascal%27s_triangle

Work out on paper what you need to do

program it into the languge of your choice

LizR 171 Posting Virtuoso

If you are unsure how you would go about making it, the best thing is to draw it on paper wnd write down what your doing step by step, so if you take a random shape, you place it in the middle and then describe how you would move it down, and decide if it would move down etc.. once you have the description.. you can work on the code.

LizR 171 Posting Virtuoso

You have a lot of reading to do.

If you want to use https you will need to purchase a certificate, and unless you want to make your own life excessively complex you would then use IIS to create the initial website, and you could use ASPX to then make the web folder sharing ability.

Most of the web sharing thing doesnt work as a windows folder, it works more in the lines of a database of files - or it can work with a folder structure - but, you handle all the user authentification and settings yourself via a db.

LizR 171 Posting Virtuoso

Debugging is always the answer
Follow the data you get back, look at its values, look at what your code does.

I dont have vb6 to put it in. (or rather its around on a cd somewhere, but I am not loading it)

LizR 171 Posting Virtuoso

RJC131, I disagree, No one has been rude. The nearest to rudeness is the original poster coming and asking a bunch of people to do his work for him. No one else has been rude

ddanbe commented: well said +2
LizR 171 Posting Virtuoso

I thought Ramymahrous had... after all you didnt come back with a it didnt work because.

LizR 171 Posting Virtuoso

thats because vb doesnt do the #$ notation.. I believe its something like vbCrLf .. but I dont do vb, its pointless.

and I believe VB still has a pos function where you can test if its > 1 or not.. check the helpfile

LizR 171 Posting Virtuoso

which one does it get stuck in?

Only thing I can think of is
"#$0D#$0A" + "#$0D#$0A"


by putting in the " marks you're turning them to strings.. which isnt what you want. so its possibly not returning the data you want.

LizR 171 Posting Virtuoso

As I said change the selected item..

LizR 171 Posting Virtuoso

I wouldnt expect it to, as what is jim called with? you expecting it to call it with 0?

I know the Jim can be, but at the same time think in most modern coding standards its frowned on as it is more confusing to read

LizR 171 Posting Virtuoso

Then its in that default list you just need to find it.

LizR 171 Posting Virtuoso

Well a short bit of debugging would show you part of the problem.

Try just changing the index of the selected item if its not the right one.

LizR 171 Posting Virtuoso

There are plenty of similar translations all over, especilly the isvmware and isvirtual pc - google for them - as for the process list - there are plenty of examples of that too

LizR 171 Posting Virtuoso

Sure there are no spaces? which was the point of the break point? Why not

the value in combox must be changing if the code youve said (eg the labels) is true. Hence Ive asked about the spaces

LizR 171 Posting Virtuoso

Im not convinced your IOresult test is the right answer - because assign is always the same, perhaps you want to use a file exists function

LizR 171 Posting Virtuoso

Put a break point in, add a watch to th value.. basic stuff.. thats how you tell whats in it.

LizR 171 Posting Virtuoso

Imw ith the others if you can read one, you should be able to read the other. What stops you, What code do you have and what is the problem you have with it..

LizR 171 Posting Virtuoso

Im guessing

Procedure Accounts(Cuenta:T_Account);
Begin
  {$I-}
    reset (Acu);
  {$I+}
  If (IOResult = 0) Then
  Begin
    reset(Acu); {*The file exist*}
    assign(acu,'..\Data\Accounts.Gp7');
    reset(Acu);
    write(Acu,Cuenta);
    close(acu);
  End
  Else
  Begin
    rewrite (Acu); {* the file doesn't exis *}
    rewrite(Acu);
    assign(Acu,'..\Data\Accounts.Gp7');
    reset(Acu);
    write(Acu,Cuenta);
    close(acu);
  End;
End;

You do a reset on a file you havent assigned, and then test the io result, but in the second io result you dont assign the file.. so no file would be made.

LizR 171 Posting Virtuoso

So. Whats not working? In what way does it not work?

LizR 171 Posting Virtuoso

I guess it depends a little why you would have such a structure, however, if the forms have to remain forms, but work except the main form, you can of course disable it.. and have a counter so that when you close the other forms, they decrease the counter so that you can then use the main form when and only when all the blocking forms have closed.

The bad side of that is you would also need to be careful come the windows shutdown message

LizR 171 Posting Virtuoso

Id have thought it would have complained at
jim:=x

as jim the parameter cant be set a value, it returnsone, but I guess theres tha possibility you're making use of the using the name of the function aspect as the return variable.

I guess then the other choice is

bill(jim);

where jim has no values sent to it.

LizR 171 Posting Virtuoso

first thing to do is put a break point on the if combobox1.text <> 4 line and see what combobox1.text value really is and confirm its running the code

LizR 171 Posting Virtuoso

To achieve proper automation and to use excel spreadsheets it would require excel.

LizR 171 Posting Virtuoso

You havent exported any functions so theres nothing for it to use.

You also have used String - against the advice at the top of the file.