Help with Delphi Functions
Help with Delphi Functions
Hey all,me is having a little trouble with a program. I have a integer array with 4 indexes,I need to get the largest number out of the array and from which index it came from. i dug around in Delphi help and came up with a MaxIntValue function,which apparently was just what I wanted,then I stuck it in and Delphi says its an undeclared something... Anyone got any ideas?
Also can anyone explain to me how to use the InitiateSystemShutdown() Declaration? I like putting little surprises into my tests and exams,and Im trying to figure this one out
Thanx in advance...[/code]
Also can anyone explain to me how to use the InitiateSystemShutdown() Declaration? I like putting little surprises into my tests and exams,and Im trying to figure this one out
Thanx in advance...[/code]
Is this thing on?Helloooo?
-
- Registered User
- Posts: 20576
- Joined: 19 Sep 2003, 02:00
- Location: Bloodbank
-
- Registered User
- Posts: 20576
- Joined: 19 Sep 2003, 02:00
- Location: Bloodbank
What units you importing?
If you don't have math then add it.
Anyway I see one problem with that and it is that you still don't have the location within the matix where the number is located. That is obviously if you get this to work. Looks like you would have to loop through the matrix in any case trying to find a match for the value you get back. Better to just create a method containing a loop that goes through the matrix and saves the value and the position if it is higher than the one you have stored thus far. Verry easy stuff really. Grade 10 School work.
Shutdown Code
If you don't have math then add it.
Anyway I see one problem with that and it is that you still don't have the location within the matix where the number is located. That is obviously if you get this to work. Looks like you would have to loop through the matrix in any case trying to find a match for the value you get back. Better to just create a method containing a loop that goes through the matrix and saves the value and the position if it is higher than the one you have stored thus far. Verry easy stuff really. Grade 10 School work.
Shutdown Code
- Spoiler (show)
-
- Registered User
- Posts: 947
- Joined: 06 Aug 2005, 02:00
- Contact:
woo i can get help here?
this year i started delphi at school, i got kylix(delphi for linux)and so far it as been quite cool
but when you wrote the program(and saved it)
when you run it kylix just crashes......
so i wrote a fancy script that runs the program outside of kylix....but its really crap because you always have to keep open a console and type /home/irye/runkylix Project1
any ideas of what the problem is?
how can i make it work when i click run....
...im running it under mandriva10.2LE
on a amd2600+ with 762RAM
any probelms?
pls help!!!!!
this year i started delphi at school, i got kylix(delphi for linux)and so far it as been quite cool
but when you wrote the program(and saved it)
when you run it kylix just crashes......
so i wrote a fancy script that runs the program outside of kylix....but its really crap because you always have to keep open a console and type /home/irye/runkylix Project1
any ideas of what the problem is?
how can i make it work when i click run....
...im running it under mandriva10.2LE
on a amd2600+ with 762RAM
any probelms?
pls help!!!!!
When I die, I want to go peacefully like my Grandfather did, in his sleep -- not screaming, like the passengers in his car.
-
- Registered User
- Posts: 947
- Joined: 06 Aug 2005, 02:00
- Contact:
-
- Registered User
- Posts: 947
- Joined: 06 Aug 2005, 02:00
- Contact:
-
- Registered User
- Posts: 20576
- Joined: 19 Sep 2003, 02:00
- Location: Bloodbank
Ask in the mandrivia section. It is not really related to this topic.iREADyourEMAIL wrote:woo i can get help here?
this year i started delphi at school, i got kylix(delphi for linux)and so far it as been quite cool
but when you wrote the program(and saved it)
when you run it kylix just crashes......
so i wrote a fancy script that runs the program outside of kylix....but its really crap because you always have to keep open a console and type /home/irye/runkylix Project1
any ideas of what the problem is?
how can i make it work when i click run....
...im running it under mandriva10.2LE
on a amd2600+ with 762RAM
any probelms?
pls help!!!!!
- Spoiler (show)