NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: springguy 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
-
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
-
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