NetTalk Central

Author Topic: Embed point on Button  (Read 3483 times)

johanco123

  • Full Member
  • ***
  • Posts: 245
    • View Profile
    • Email
Embed point on Button
« on: April 25, 2013, 10:50:02 PM »
Hi Bruce

I add a button on a memory form. I want to add some code to be activated when the button is pressed before the procedure is called. Which embed point can I use to do this? Any suggestions.

Regards
Johan

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11302
    • View Profile
Re: Embed point on Button
« Reply #1 on: April 25, 2013, 11:56:33 PM »
no, a button can't do "2 things".

ie if it has a Procedure, or URL attached then it's going to make a call to that Procedure or URL. If it doesn't have a Url or Proc then it'll call the browse itself, and run the Server Side code for the button. But it can't do both.

(Well strictly speaking it could do both - but the order would be undetermined - which would make it pretty useless for you.)

Cheers
Bruce