Board index » delphi » Array Query

Array Query

I have a static array which works fine, but I would like to build this array
from a table so that if the values change I can allow authorised people to
edit the values.

Once the values are edited, apart from restarting the program how do I
refresh the array values in memory?

Thanks for any help in advance.

Chris

 

Re:Array Query


We really need more information about what you're trying to do, but I'll
take a stab at it.

I'm assuming you're trying to get notification of when a row in a table is
updated.

Let's also assume you're in control of the "updating" application.

Let's also assume you're in control of the network and you've made it
TCP/IP.

You /could/ have your updating application send a broadcast UDP packet to
your local network indicating a refresh needs to take place.

Does that work?

Eric

Quote
"chrisross.arc" <chrisross....@eggconnect.net> wrote in message

news:3c065540$1_1@dnews...
Quote
> I have a static array which works fine, but I would like to build this
array
> from a table so that if the values change I can allow authorised people to
> edit the values.

> Once the values are edited, apart from restarting the program how do I
> refresh the array values in memory?

> Thanks for any help in advance.

> Chris

Re:Array Query


Using Delphi 5, Paradox tables on NT Network.

I have an application that calculates insurance premiums for cars, using 10
groups and 1-5 years no claims discounts.  These values are hard coded in an
array that is built in memory when the app starts.

I want to be able to build th earray by reading the values from a table, so
that if the underlying values change it is easy to change the value, however
once the value has been changed I need to be able to force a rebuild of the
array within the program.

Can anyone give me some pointers on how to read the array from a table and
then to force the rebuild.

Many thanks

Chris

Other Threads