NetTalk Central

Author Topic: WinEvent message  (Read 2770 times)

markster

  • Full Member
  • ***
  • Posts: 204
    • View Profile
    • Email
WinEvent message
« on: August 19, 2012, 12:00:21 PM »
If I'm deleting a table record in hand code, I normally use the Access:xxx.DeleteRecord(0) with the 0 option set to NOT display a warning message. However, if I don't use the 0, a WinEvent message box (ie Window's message) comes up with a timer. No problem but what happens with this on another operating system (ie Apple)? Is there some simple way to call a browser Message box with my own custom message and a way to read whether OK or Cancel was clicked?

Mark

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11263
    • View Profile
Re: WinEvent message
« Reply #1 on: August 19, 2012, 10:02:45 PM »
Hi Mark,

>> If I'm deleting a table record in hand code, I normally use the Access:xxx.DeleteRecord(0) with the 0 option set to NOT display a warning message.

Correct, the 0 tells ABC not to display a "are you sure" message.

>> However, if I don't use the 0, message box (ie Window's message) comes up with a timer.

(Nothing to do with WinEvent). From the timer I assuming you have CapeSoft MessageBox installed. But that's immaterial. By not passing false to DeleteRecord, you are asking ABC to provide a "confirmation" message. And that's exact;y what's happening. (On the _server_ mind you, not the browser.)

>> No problem

well, yes, problem. You don't want messages appearing on the server.

>> but what happens with this on another operating system (ie Apple)?

no issue at all since the server is running on Windows, and that's where the message is. The client never sees it.
So the OS of the client is irrelevant.

>> Is there some simple way to call a browser Message box with my own custom message and a way to read whether OK or Cancel was clicked?

that's a very different question, and would enormously depend on the context. It's far from trivial to do this, and really would require a reasonable understanding of JavaScript. There's a reason the browse has support for Delete. As indeed, does the form.

cheers
Bruce