NetTalk Central

Author Topic: What is the NT7 format for SetAlert?  (Read 4126 times)

springguy

  • Full Member
  • ***
  • Posts: 195
    • View Profile
    • Email
What is the NT7 format for SetAlert?
« on: August 19, 2013, 10:02:59 AM »
Converting from NT 6 to NT 7.20 and an getting "No Matching Prototype" errors on my SetAlert embed code. 

My code is:
p_web.SetAlert('My Message Goes Here')

I see in doc history that SetAlert has been "refactored" in NT7 around version 12, but I don't find a description of what the format for the refactored SetAlert is.

Can you fill me in on the format?
Thanks,
Mike Springer

Rob Kolanko

  • Sr. Member
  • ****
  • Posts: 253
    • View Profile
Re: What is the NT7 format for SetAlert?
« Reply #1 on: August 19, 2013, 10:32:48 AM »
For me, just adding text to the loc:alert field will display the text in a popup. If you are validating a record, place the name of the field in the loc:invalid field to highlight the field and prevent accepting the edit for the record.
I hope this helps.
Rob Kolanko

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11304
    • View Profile
Re: What is the NT7 format for SetAlert?
« Reply #2 on: August 19, 2013, 08:56:03 PM »
Mike,

The classes are declared in
C:\Clarion9\accessory\libsrc\win\NetWeb.inc
So whenever there's a prototype change that you need to know more about you can just look in there. Searching for Setalert reveals;

SetAlert               Procedure(String pMessage,Long pWhere=1,String pProcedure),Virtual

So your code becomes

p_web.SetAlert('My Message Goes Here',1,'SomeProcedureName')

Cheers
Bruce