fr de es it nl pl pt pt_BR mk sq ca ar fa vi ja ru zh zh_TW eo
Home > lang > error
 
Edit  Rename  Undo  Refresh   
Documentation
History  
ERROR - History
05/17/2007 17:04:03 - gambas
..............................................................................   ..............................................................................
IF ERROR THEN PRINT "Cannot remove file. "; Error.Text                           IF ERROR THEN PRINT "Cannot remove file. "; Error.Text                        
}                                                                                }                                                                             
                                                                                                                                                               
_                                                                                                                                                              
                                                                                                                                                               
{syntax                                                                          {syntax                                                                       
*ERROR* _Expression_ [ { *;* | *;;* | *,* } _Expression_ ... ] [ { *;* | *;;*    *ERROR* _Expression_ [ { *;* | *;;* | *,* } _Expression_ ... ] [ { *;* | *;;* 
}                                                                                }                                                                             
..............................................................................   ..............................................................................
05/17/2007 17:03:54 - gambas
..............................................................................   ..............................................................................
}                                                                                }                                                                             
                                                                                                                                                               
_                                                                                _                                                                             
_                                                                                                                                                              
                                                                                                                                                               
{syntax                                                                          {syntax                                                                       
*ERROR* _Expression_ [ { *;* | *;;* | *,* } _Expression_ ... ] [ { *;* | *;;*    *ERROR* _Expression_ [ { *;* | *;;* | *,* } _Expression_ ... ] [ { *;* | *;;* 
..............................................................................   ..............................................................................
05/17/2007 17:03:48 - gambas
..............................................................................   ..............................................................................
IF ERROR THEN PRINT "Cannot remove file. "; Error.Text                           IF ERROR THEN PRINT "Cannot remove file. "; Error.Text                        
}                                                                                }                                                                             
                                                                                                                                                               
<p>                                                                              _                                                                              
                                                                                 _                                                                              
                                                                                                                                                               
{syntax                                                                          {syntax                                                                       
*ERROR* _Expression_ [ { *;* | *;;* | *,* } _Expression_ ... ] [ { *;* | *;;*    *ERROR* _Expression_ [ { *;* | *;;* | *,* } _Expression_ ... ] [ { *;* | *;;* 
..............................................................................   ..............................................................................
05/17/2007 17:03:37 - gambas
..............................................................................   ..............................................................................
IF ERROR THEN PRINT "Cannot remove file. "; Error.Text                           IF ERROR THEN PRINT "Cannot remove file. "; Error.Text                        
}                                                                                }                                                                             
                                                                                                                                                               
--                                                                               <p>                                                                            
                                                                                                                                                               
{syntax                                                                          {syntax                                                                       
*ERROR* _Expression_ [ { *;* | *;;* | *,* } _Expression_ ... ] [ { *;* | *;;*    *ERROR* _Expression_ [ { *;* | *;;* | *,* } _Expression_ ... ] [ { *;* | *;;* 
..............................................................................   ..............................................................................
05/17/2007 17:03:21 - gambas
..............................................................................   ..............................................................................
                                                                                                                                                               
Use it just after a [/lang/try] instruction to know if the executed instructio   Use it just after a [/lang/try] instruction to know if the executed instructio
                                                                                                                                                               
To get more information about the error, use the [/comp/gb/error] class.         To get more information about the error, use the [/comp/gb/error] [../../def/c 
                                                                                                                                                               
{warning                                                                         {warning                                                                      
The error flag is reset to [../false] when:                                      The error flag is reset to [../false] when:                                   
..............................................................................   ..............................................................................
IF ERROR THEN PRINT "Cannot remove file. "; Error.Text                           IF ERROR THEN PRINT "Cannot remove file. "; Error.Text                        
}                                                                                }                                                                             
                                                                                                                                                               
                                                                                 --                                                                             
                                                                                                                                                                
{syntax                                                                          {syntax                                                                       
*ERROR* _Expression_ [ { *;* | *;;* | *,* } _Expression_ ... ] [ { *;* | *;;*    *ERROR* _Expression_ [ { *;* | *;;* | *,* } _Expression_ ... ] [ { *;* | *;;* 
}                                                                                }                                                                             
..............................................................................   ..............................................................................
04/01/2007 14:13:33 - gambas
..............................................................................   ..............................................................................
*ERROR* AS Boolean                                                               *ERROR* AS Boolean                                                            
}                                                                                }                                                                             
                                                                                                                                                               
Returns [../true] if an error happened.                                          Returns [../true] if an error has happened.                                    
                                                                                                                                                               
Use it just after a [/lang/try] instruction to know if the executed instructio   Use it just after a [/lang/try] instruction to know if the executed instructio
                                                                                                                                                               
To get more information about the error, use the [/comp/gb/error] class.         To get more information about the error, use the [/comp/gb/error] class.      
                                                                                                                                                               
                                                                                 {warning                                                                       
                                                                                 The error flag is reset to [../false] when:                                    
                                                                                 * The [../return] instruction is executed.                                     
                                                                                 * A [../try] instruction has been executed without any error.                  
                                                                                 }                                                                              
                                                                                                                                                                
{Example                                                                         {Example                                                                      
TRY KILL FileName                                                                TRY KILL FileName                                                             
IF ERROR THEN PRINT "Cannot remove file. "; Error.Text                           IF ERROR THEN PRINT "Cannot remove file. "; Error.Text                        
..............................................................................   ..............................................................................
04/01/2007 01:20:24 - gambas
No change
04/01/2007 01:19:02 - gambas
..............................................................................   ..............................................................................
IF ERROR THEN PRINT "Cannot remove file. "; Error.Text                           IF ERROR THEN PRINT "Cannot remove file. "; Error.Text                        
}                                                                                }                                                                             
                                                                                                                                                               
{Seealso                                                                                                                                                       
[cat/error]                                                                                                                                                    
}                                                                                                                                                              
                                                                                                                                                               
{syntax                                                                          {syntax                                                                       
*ERROR* _Expression_ [ { *;* | *;;* | *,* } _Expression_ ... ] [ { *;* | *;;*    *ERROR* _Expression_ [ { *;* | *;;* | *,* } _Expression_ ... ] [ { *;* | *;;* 
}                                                                                }                                                                             
..............................................................................   ..............................................................................
See [../print] for more details about the syntax and the behaviour.              See [../print] for more details about the syntax and the behaviour.           
                                                                                                                                                               
{seealso                                                                         {seealso                                                                      
[../print]                                                                       [cat/error] [../print]                                                         
}                                                                                }                                                                             
                                                                                                                                                               
04/01/2007 01:18:14 - gambas
..............................................................................   ..............................................................................
{Seealso                                                                         {Seealso                                                                      
[cat/error]                                                                      [cat/error]                                                                   
}                                                                                }                                                                             
                                                                                                                                                                
                                                                                 {syntax                                                                        
                                                                                 *ERROR* _Expression_ [ { *;* | *;;* | *,* } _Expression_ ... ] [ { *;* | *;;*  
                                                                                 }                                                                              
                                                                                                                                                                
                                                                                 Prints expressions to the standard error output, exactly like the [../print] i 
                                                                                                                                                                
                                                                                 The standard output can be redirected by the [/lang/errorto] statement.        
                                                                                                                                                                
                                                                                 See [../print] for more details about the syntax and the behaviour.            
                                                                                                                                                                
                                                                                 {seealso                                                                       
                                                                                 [../print]                                                                     
                                                                                 }                                                                              
                                                                                                                                                               
04/22/2006 02:28:17 - hj.herbert
Creation