` Printed Icetips Article

Icetips Article



Par2: Getting errorcode ABC
2004-09-14 -- John Dunn
 
You should be able to get the Clarion error and errorcode like this:

    Sales:StoreID = 123
    IF Access:Sales.Fetch(Sales:IX_StoreID) ~= LEVEL:Benign
      ThisWindow.Errors.SetErrors()
      MESSAGE('An error occurred retrieving the Sales Record for store: ' & 
Sales:StoreID & '. The error is: ' & |
              ThisWindow.Errors.GetErrorCode(ErrClarion) & ' - 
'                                              & |
              
CLIP(ThisWindow.Errors.GetError(ErrClarion)),                                             
       
|
              'Sales Retrieval Error',ICON:Exclamation)
    END ! if



Printed May 4, 2024, 10:20 am
This article has been viewed/printed 35119 times.