NetTalk Central

Author Topic: How to autoclose a form?  (Read 3526 times)

Mike McLoughlin

  • Full Member
  • ***
  • Posts: 126
    • View Profile
    • Clarion Templates
    • Email
How to autoclose a form?
« on: July 31, 2009, 04:01:20 AM »
I'm using a form (with no fields) as a place to put some Clarion code.

There is a save button and I want the form to close automatically.  Usually I would put POST(event:accepted,?cancel) in the event:openwindow.

What's the equivalent in NTWS?

regards

Mike
Mike McLoughlin

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: How to autoclose a form?
« Reply #1 on: July 31, 2009, 07:12:25 AM »
Hi Mike,

The question is wrong because what you're doing is wrong.
A form isn't a place-holder for other code. There are other procedure types for holding code, like a normal Clarion source procedure etc.

So the real question is, what is that you are trying to do - ie what is the original problem that the form was meant to save?

cheers
Bruce




Mike McLoughlin

  • Full Member
  • ***
  • Posts: 126
    • View Profile
    • Clarion Templates
    • Email
Re: How to autoclose a form?
« Reply #2 on: August 01, 2009, 12:29:45 AM »
OK I'll have a look at using a normal source procedure

thanks

Mike
Mike McLoughlin