LizR 171 Posting Virtuoso

That was helpful of him.

LizR 171 Posting Virtuoso

do you mean to make a new copy of the form, or change to an existing one?

LizR 171 Posting Virtuoso

Then I go back to what RamyMahrous said, it works the same as XP etc, so, get googling on how to look at file and directory structures.

LizR 171 Posting Virtuoso

"Root->Backups" whats this? this isnt a directory format, simple answer you need to log in using a command line ftp to your ftp server, look at the directories it gives you and work out the path relative to where you want to go and then change to it.

LizR 171 Posting Virtuoso

1. Your statement in your code saying "All variables are made public" is not true.

Your other code doesnt seem to be overly relevant as you have a number of forms defined, but include no detail. You have an empty class of "FixedString".. I cant help you with why things arent working without detail. If the items you try and access are private, then it cant be seen.

if you have 2 forms, for ease of typing Form1 and Form2. You create instances of them.. For you to then access 1 from the other you *can* as long as you can see the variable holding the instance of the other form, use that. If you cant, then its a simple design problem.

2. yes and no. Use of properties is a better standard to adapt and saves changes later, etc, but its not necessarily *bad* but public *is* required for some things, you cant avoid it, if your property is not public, nothing can use it.. public variables persay is just lazy, but if you dont need anything else, its a practical place to start

3. As big as you like pretty much
4. See above, as pretty much as big as you like, however, the more you cram in, the more memory it will use.

LizR 171 Posting Virtuoso

no. Im not your mother, i wont do it for you.
Look on google yourself

LizR 171 Posting Virtuoso

Im speaking from the many years of programming I have.
the problem is you're looking at a class template and wondering why you cant use it without an instance.. which you cant, you're also running into issues of scope.

your code for example

public static void Uruchom()
        {
            Book written = new Book();
            Book bought = new Book();
            written.Author = "Test";
        }

Once you leave that procedure, both bought and written cease to exist. So, you cant use them.

LizR 171 Posting Virtuoso

as long as theres an FTP server on it, yes, you can use localhost.

LizR 171 Posting Virtuoso

Try just "DML c#" comes back with a lot of info

LizR 171 Posting Virtuoso

No, Im not giving anyone contact info - nor am I likely to be writing your code for you. I have my own coding to do.

LizR 171 Posting Virtuoso

Well, my "test" app is an RPG game a bit like a muck, so Im recreating an evironment I know well but I can extend it to the point of writing my own programming language with in it, multi user, networks, reports, db, I can make it as much or as little as I want.

The key part is to find something interesting - another one of mine is a "things to do " program, where you schedule things, or just have "stuff" you need to do, priorities, sorting, different class types for different "things" you're doing, eg, maybe a holiday which has a start and end, or just something you want to work on.. so has no start, no end, but is "on going".. it may have sub parts, some compulsary, some not..

or it could be a game like my RPG game.. it just needs to be something that you're interested, that you'd use, if you wouldnt use it, its pointless.

LizR 171 Posting Virtuoso

Load an FTP server onto your pc.

LizR 171 Posting Virtuoso

all classes under a name space can see each other, so, as long as you have made the variable/property under the classes that you need to see from one class to another, public, the other classes can see and use them.

LizR 171 Posting Virtuoso

We will help you, but we wont write anything for you. google, has nearly all the answers you could need. Have a look.

LizR 171 Posting Virtuoso

As asked before.
What code do you have that doesnt work ?

LizR 171 Posting Virtuoso

Code tags woulld have been nice

I still stand by my earlier statement of if you made a descendant of tab page you could have a class and it would then be easier to work with as you would have labels etc directly to work with

LizR 171 Posting Virtuoso

it probably needs quote marks round it too or it will try and think its a column name

LizR 171 Posting Virtuoso

exactly - do a google on wav file headers.

LizR 171 Posting Virtuoso

probably because wav files have a header - to tell them the speed, etc

LizR 171 Posting Virtuoso

I dont see any code for where you open your access database?

LizR 171 Posting Virtuoso

What error do you get?

LizR 171 Posting Virtuoso

Check the controls within the tabpage, for the one you want.. Of course if you made a descendant of the tab page, that you then instanciated to put on your page, you would preknow what its called as its all setup in the class..

LizR 171 Posting Virtuoso

Not exactly as you show but you can.

You can do what are called "open arrays" which you specify within the parameters

Dr Bob has a good article http://www.drbob42.com/uk-bug/hood-03.htm

LizR 171 Posting Virtuoso

Well if you've worked out how to read a page, posting to a page shouldnt be that much harder. have you tried posting the variable to the search page?

LizR 171 Posting Virtuoso

works exactly the same for a mounted share as it would locally.

LizR 171 Posting Virtuoso

Why not try the asp.net forum:)

LizR 171 Posting Virtuoso

google is your friend - a bit of resarch to find out what the desktop wants and will accept dropped onto it should help.

LizR 171 Posting Virtuoso

any app which gets your imagination going and you can keep building on for a while is a good app. You sound like you want a database challenge so, start with a simple db+client and then work to a 3 teir approach and get into those kinds of aspects.

LizR 171 Posting Virtuoso

please use code tags so we can read your code.

LizR 171 Posting Virtuoso

There are a few PDF readers for delphi, google wiill provide those, i guess it depends a little on what data and how you know to find it in the pdf.. but it should be possible

LizR 171 Posting Virtuoso

see above..

LizR 171 Posting Virtuoso

Thats not an array of controls, thats just a bunch of controls with similar name.

You can use the findcomponentbyname so you could then use a for loop (assuming you do have all 1..22)

LizR 171 Posting Virtuoso

*NEVER* make the assumption that a files extension is only 3 characters.

LizR 171 Posting Virtuoso

1)


So b field has a value even though it doesn’t actually point to a specific location ( at compile time )? But couldn't then same argument also applied to, say, integer field:

Sort of, but, very basic elemental types are slightly different..

public int someValue = new A().someMethod();

Here someValue will be initialized at run time, when instance method someMethod() is called.
But we could still argue that at compile time someValue is a holder of a integer shaped piece of memory and thus someValue has a value, it is int shaped?!

Ah but who are you to amke the assumption that .somemethod() only returns an int, it could do so much more. hence it needs the change.

2)


I realize that in the example you provided client code also needs to change ( since basically the interface changed ). But I don’t understand why client code should also change if it wants to access member A of the following class:

class X
{
  public int A
}

and we change class X to

class X
{
    public int A
   {
         get; set;
    }
}

Here client code should remain the same, since the interface didn't change!

Ah, but, it needs to generate the missing private variable etc.


3)
If I understood you correctly, then compiler doesn't place a constant A into an assembly, but rather just its value?
I don't quite understand what is gained by implementing constants …

LizR 171 Posting Virtuoso

1)

B b = new B();

Does have a value - as in effect it is a pointer to a B shaped peice of memory. Ergo, it has value, it is B shaped.

2) In your code if you have

Class X
{
 public int A;
}

And you change it to

class X
{
private int a;
public int A
{
 get { return a; }
 set { a=value; }
}

You've changed where in memory its pointing to.. so it would need recompliation.

3) because, constants are hard coded into the exe, eg if you put in A= 50; rather than it taking A and placing 50 in it it, all instances of A are pointing to a reference of 50 within the exe (ish) - give or take a bit.

LizR 171 Posting Virtuoso

When you "open" the form, include as part of the calling to open method an update of your combobox items.

LizR 171 Posting Virtuoso

Please mark the thread as solved.

LizR 171 Posting Virtuoso

I guess File.Move(old,new) was too much to look for?

LizR 171 Posting Virtuoso

OK, but, you already did it when you asked for the data to be read in..So.. Id say, take a better look at that line...

LizR 171 Posting Virtuoso

you dont open it in a browser. You download the page to memory and work through with it. Look at HttpWebRequest and HttpWebResponse

LizR 171 Posting Virtuoso

Have you looked at what you get in the foreach loop?
OK while that code wont work specifically it has a big raving clue in it...

What do you think the clue is?

LizR 171 Posting Virtuoso

Well, not having used the tdbf components I dont know what they support, but the short version would be, Id expect to do it SQL style so

select * from tablea into tableb

or

delete * from tablea

If they dont suppor that, do it the good old fashioned hardway of looping through the records

LizR 171 Posting Virtuoso

You dont.. Its a predefined class in .net - have a check in your helpfile, its clever and tells you what references (if necessary) and what "using" statements you would need

LizR 171 Posting Virtuoso

Or you could do it more simply with System.IO.Path.GetDirectoryName

Antenka commented: Oh yeah. That's better way :) +1
LizR 171 Posting Virtuoso

Have you checked what properties and how to use the dialogbox as per the helpfile? If we hand you all the code you dont learn how to find these things and will end up frustrated as you have to ask for everything and it takes longer.

If you look at the dialogbox in the helpfile, it has examples, it shows how to get the filename and stuff back, then the label component has properties of its own and you can see how to apply them..

Far more pride and joy is got by doing it yourself.

LizR 171 Posting Virtuoso

Well you're right in that that wouldnt work but you arent as far off as you think.

You ask for 7 numbers, thats fine.
the only part is wrong really is the if and until.. (as you're arent actually asking for a number you're just writing out please reenter the number.. but also an if and until dont go together.

You might want to read up on how the "until" function works, such as at http://delphibasics.co.uk/RTL.asp?Name=Until

But the general premise is OK, although [a] would fail, as would the (->1 and <=7) and theres no repeat with your until :) But the logic you have isnt that far wrong.

Read up on while loops too, theres a huge difference between them, but you may what whiles as well later :)
http://delphibasics.co.uk/RTL.asp?Name=While

See if you can work out what to do next

LizR 171 Posting Virtuoso

How to validate it? thats kinda something I want you to work out, so..

Stepping through an array..

for i:=1 to 7 do
begin
  writeln(a[i]);
end;

So, that will write out your elements..
Now, see if you can add enough code to test if its valid or not.

You'll probably want 1 more variable, and you'll need your if statements..

See if you can tell me what you think it should be

LizR 171 Posting Virtuoso

Is the error on your machine or on the webserver you uploaded to? the asp.net forum would be better as this is a generic c# forum, the guys in the asp.net are more dedicated to webservers

LizR 171 Posting Virtuoso

Have you tried a for loop on the array to work through each item?

LizR 171 Posting Virtuoso

Well, you seem to have grasped the if statement, what issues did you have when deciding wether all the numbers entered were between 1 and 49 (and I guess not used twice)