I think I've refined my routine where I'm now a little happier
I have public variable (unimessage) defined in my MAIN.prg

In the MAIN FORM, I have a timer with the following code

IF USED("SYSTEMFILE")     && in case it is closed i don't want an error
   GO TOP IN systemfile
   IF !EMPTY(systemfile.tellall)
      IF !ALLTRIM(systemfile.tellall)==ALLTRIM(unimessage)
         unimessage=ALLTRIM(systemfile.tellall)   && so it doesn't keep
popping up ad nauseum
         DO FORM trmessage
      endif
   ENDIF
ENDIF

Thank y'all for comments



On Fri, Jul 25, 2008 at 5:13 AM, Paul McNett <[EMAIL PROTECTED]> wrote:

> Sytze de Boer wrote:
>
> > It may be a simple peer to peer where the application is on a users local
> > shared drive
> > It may be a windows 2000 or windows 2003 system or exchange server
> >
> > I'm looking for a simple system where the user clicks a button, types a
> > message, and all users logged into my accounting system see the message.
>
> The simplest way I can think of would be to make a 'messages' directory
> underneath your server data directory (somewhere accessible to all users
> of your app). You type a message into your form, and it saves a file
> with a unique key for the filename.
>
> Then you have a timer polling that directory for message files that
> haven't been seen yet, and presenting them to the user. After a day or
> two, another process cleans up the messages directory.
>
> You could implement this with database tables, too.
>
>
> Paul
>
>
[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to