Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Question in error handling
Message
De
03/08/2004 16:06:37
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Question in error handling
Divers
Thread ID:
00930495
Message ID:
00930495
Vues:
40
Hi all,

Can I throw the same error to a try block from an Error method? Example:
gMode = 1 && global mode variable (public)
try
  oFrm = createobject('frm')
  oFrm.SomeProcess()
catch to loExc
finally
endtry

define class frm as form
  proc someprocess()
    error 1
  endproc
  proc error(nError, cMethod, nLine)
    if gMode = 1
      * I want to throw the error here. Is it possible?
      * error nError && does not do it because the err.lineno, err.proc will be changed.
    else
      do errhand with nError, cMethod, nLine
    endif
  endproc
enddefine
ramil
~~ learning to stand still
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform