%error() Function

Top  Previous  Next

This function is used to create a custom compile error and thus to stop the compilation of the current page.

Examples:

 

  %doif(../elmsource != '\cpn\mor\updatemmdb\InsertForm.mmel')

    %error('Element "' + elmpath + '" misplaced.')

  %doend()

 

  %doif(dbname = '')

    %error('"Database Name" property of element "' + elmpath + '" is not defined')

  %doend()

 

  %doif(%pos('%vof(./seq)','%vof(_seqlist)') > 0)

    %error('"Update Sequence Number" property of element "' + elmpath + '" is already used')

  %doend()