AI Object
 
Syntax
 
strValue = AI.LastErrorMessage
 
Type
String
Access
read-only
Description
Returns a human-readable description of the most recent error on the AI object, corresponding to the code in LastErrorCode. If the last operation succeeded the string is empty.
The text is intended for logging, status bars, and developer feedback. It is NOT localized — messages are always in English. For user-facing messages, translate the LastErrorCode value through TRADIUM's standard translation layer instead.
 
See Also
Example
 
Sub Main
Dim hConv As Long
 
hConv = AI.Ask("Test prompt", aiGeneral)
If hConv = 0 Then
MsgBox "AI submit failed:" & vbCrLf & AI.LastErrorMessage, vbExclamation
Exit Sub
End If
End Sub