NetTalk Central

Author Topic: Strange 'No matching prototype' error porting to NT 6  (Read 2839 times)

CaseyR

  • Sr. Member
  • ****
  • Posts: 448
    • View Profile
    • Email
Strange 'No matching prototype' error porting to NT 6
« on: January 11, 2012, 10:13:01 PM »
I am porting an application in development from NT 5 to the latest build of NT 6 and have gotten stuck on a 'No matching prototype' error on single procedure.

The procedure is a NetWebBrowse procedure similar to several others that compile fine.  The procedure has a form procedure to delete a record, but the delete procedure is called by a button on the browse row rather than a single delete button above the browse.

The error is in the ClosingScripts  Routine shown in bold italic underline on the last line below (starts at ( of clip and ends with ' immediately afterwards)
-------------------------------------------------------
  loc:options = ' sproc:"'&lower('BrowseMNRUSView')&'",' & |
                  ' id:"'&clip(loc:divname)&'",' & |
                  ' parent:"'&clip(loc:parent)&'",' & |
                  ' value:"'&clip(loc:actualselection)&'",' & |
                  ' form:"'&clip('DeleteMNRESUSER')&'",' & |
                  ' formInsert:"'&clip('')&'",' & |
                  ' formCopy:"'&clip('')&'",' & |
                  ' formChange:"'&clip('')&'",' & |
                  ' formView:"'&clip('')&'",' & |
                  ' formDelete:"'&clip('')&'",' & |
                  ' formpopup:'&loc:FormPopup&',' & |
                  ' selectAction:"'&clip(loc:selectAction)&'",' & |
                  ' closeAction:"'&clip(loc:CloseAction)&'",' & |
                  ' lookupField:"'&p_web.GSV('BrowseMNRUSView:LookupField')&'",' & |
                  ' confirmDeleteMessage:"'&clip()&'",' & |

Any suggestions will be greatly appreciated.  Thanks.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Strange 'No matching prototype' error porting to NT 6
« Reply #1 on: January 12, 2012, 05:35:12 AM »
In Clarion the CLIP command doesn't take an optional parameter.
So
CLIP()
is illegal.

Usually this means that some template setting is "missing" - even an empty string (a couple of single quote characters) would be a good idea.

you can sometimes infer from the surrounding code what the template setting might be that is missing. In this case my super-senses tell me you've got an empty "delete message confirmation".

In the Browse settings go to the 'Form" tab
Then to the Delete button tab
and you'll see a tick mark there "prompt for confirmation".
Even if the if the tick is off then there needs to be a prompt (even if the prompt is just '')
(I'll refine that for future builds.)

Cheers
Bruce


CaseyR

  • Sr. Member
  • ****
  • Posts: 448
    • View Profile
    • Email
Re: Strange 'No matching prototype' error porting to NT 6
« Reply #2 on: January 12, 2012, 09:44:03 AM »
Thanks, Bruce.  Spot on.

For your minor bug notes:

When Prompt for confirmation is turned off, the Confirmation question entry box is disabled, reasonably enough.  You have to turn Prompt for confirmation back on, enter the single quotes then turn the Prompt check box off again before the compiler will finish.