Brightsign BrightScript 2 Reference Guide Manuel d'utilisateur Page 34

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 59
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 33
34
el=GetLastRunCompileError()
if el=invalid then
el=GetLastRunRuntimeError()
if el=&hFC or el=&hE2 then return
'FC==ERR_NORMAL_END, E2=ERR_VALUE_RETURN
print "Runtime Error (line ";ln;"): ";el
stop
else
print "compile error (line ";ln;")"
for each e in el
for each i in e
print i;": ";e[i]
next
next
stop
end if
End Sub
GetLastRunCompileError() As Object
Returns an roList of compile errors, or invalid if no errors. Each list entry is an
roAssociativeArray with the keys: ERRNO, ERRLN, ERRSTR.
GetLastRunRuntimeError() As Integer
Returns an error code result after the last script Run().
These two are normal:
&hFC==ERR_NORMAL_END
&hE2==ERR_VALUE_RETURN
Vue de la page 33
1 2 ... 29 30 31 32 33 34 35 36 37 38 39 ... 58 59

Commentaires sur ces manuels

Pas de commentaire