Show Contents / Index / Search

Error Codes for OpenSystems Terminals

The following table shows Reflection-specific runtime errors that can occur when you use OpenSystems terminals.

The first column shows the error numbers that can be returned to a Reflection command. You can trap these errors by using the On Error statement. The Err function can be used to query the error code, and the Error function can be used to query the error text. You can test your program for an error by using either the error value (first column) or the equivalent constant (second column).

For example, the following two lines perform the same test:

If theError = 4080 Then

If theError = rcErrNotImplemented Then

Error

Predefined Constant

Definition

4080

rcErrNotImplemented

Method or property is not implemented.

4142

rcErrInvalidEventNumber

The specified event number is not valid.

4220

rcErrInvalidSessionType

Invalid session type.

4665

rcErrInvalidEventNumber

The specified event number is not valid.

4667

rcErrMaxEventsDefined

The maximum number of events have already been defined.

10000

rcErrReadOnlyProperty

Property is read-only and cannot be set.

10001

rcErrInvalidBuiltInFunction

Unrecognized or invalid built-in function.

10002

rcErrInvalidRCLExpression

Specified string is not a valid RCL_RCL expression.

10003

rcErrInvalidRCLCommand

Specified string is not a valid RCL_RCL command.

10004

rcErrInvalidTerminator

Invalid or empty string specified for read terminator.

10005

rcErrTimeout

Method timed out.

10006

rcErrExpectOneDArray

Method requires a one-dimensional array.

10006

rcErrOutOfDiskSpace

Out of disk space.

10007

rcErrExpectStringArray

Method requires a string array.

10008

rcErrEmptyWaitForArray

At least one "wait for" string must be specified.

10009

rcErrOperationFailed

The Reflection API call failed.

10010

rcErrAbortedByUser

Operation canceled by user.

10011

rcErrPutPropertyFailed

Property put failed.

10012

rcErrInvalidPropertyValue

Property value is invalid or out of range.

10013

rcErrInvalidArgument

One or more arguments is invalid or out of range.

10014

rcErrTypeMismatch

One or more arguments is of the wrong type.

10015

rcErrBadTimeArgument

Invalid time argument.

10016

rcErrBadDateArgument

Invalid date argument.

10017

rcErrAlreadyInServerMode

Host file transfer program is already running in server mode.

10018

rcErrInvalidTransferType

Invalid transfer type.

10019

rcErrInvalidIfFileExists

Invalid "If file exists" option.

10020

rcErrMissingHostFilename

Host filename must be specified.

10021

rcErrMissingLocalFilename

Local filename must be specified.

10022

rcErrOneXferAtATime

Only one file transfer is allowed at a time.

10023

rcErrNotConnected

A connection is required to execute this method.

10024

rcErrProfileLocked

Command profile is already locked.

10025

rcErrNeedLockPassword

Password is required to lock the command profile.

10026

rcErrNeedUnlockPassword

Password is required to unlock the command profile.

10027

rcErrCantUnlockProfile

Command profile is permanently locked and cannot be unlocked.

10028

rcErrTransferProtocol

Transfer protocol error.

10029

rcErrTransferFailed

File transfer failed.

10030

rcErrTransferComFailed

Communications error during transfer.

10031

rcErrTransferTraceFailed

Tracing error during transfer.

10032

rcErrNoHostResponse

No response from host transfer program.

10033

rcErrHostTransferError

Transfer error occurred on host.

10034

rcErrNoUpdateTransfer

No update transfer.

10035

rcErrTransferLinkFailed

Communications error during transfer. Unable to communicate with host.

10036

rcErrCantStartTransfer

Unable to start file transfer.

10037

rcErrIncompatibleHost

Incompatible host transfer program.

10038

rcErrInvalidTerminalKey

Invalid terminal key constant.

10039

rcErrLocalFileExists

Local file already exists.

10040

rcErrLocalFileDoesNotExist

Local file does not exist.

10041

rcErrCantReadFromFile

Cannot read from local file.

10042

rcErrCantWriteToFile

Cannot write to local file.

10043

rcErrCantOpenLocalFile

Cannot open local file for reading.

10044

rcErrCantCreateLocalFile

Cannot create local file.

10045

rcErrAccessDenied

Access to file denied.

10047

rcErrInvalidTraceType

Invalid trace type.

10048

rcErrCommandDisabled

Command has been disabled.

10049

rcErrAlreadyTracing

Trace is already enabled.

10050

rcErrInvalidTarget

Invalid target script language.

10051

rcErrFastTransferFailed

Fast file transfer failed.

10052

rcErrInvalidKeyModifiers

Invalid key modifier(s).

10053

rcErrInvalidKeyName

Invalid key name.

10054

rcErrInvalidCommandType

Invalid command type.

10055

rcErrKeyReserved

Key is reserved and cannot be remapped.

10056

rcErrInvalidScanType

Invalid scan code type.

10057

rcErrInvalidScanCode

Invalid scan code value.

10058

rcErrInvalidScanName

Invalid scan code name.

10059

rcErrProductNotFound

Cannot find specified product.

10060

rcErrDDEStringTooLong

DDE command or value string is too long.

10061

rcErrDDENoResponse

No DDE servers responded.

10062

rcErrDDEInvalidID

Invalid DDE conversation ID.

10063

rcErrDDEConvLimit

Maximum number of DDE conversations established.

10064

rcErrDDEServerTimeout

DDE server timed out.

10065

rcErrDDEServerBusy

DDE server busy.

10066

rcErrAlreadyConnected

A connection is currently active.

10067

rcErrConnectionError

General connection error.

10068

rcErrStringTooLarge

Method cannot return more than 64K of data.

10069

rcErrReflectionBusy

Reflection is busy.

10070

rcErrCantWriteConnectionDir

Cannot write to Connection Directory.

10071

rcErrCantFindConnectionDir

Connection Directory cannot be found or does not exist.

10072

rcErrInvalidConnectionValue

Invalid connection setting value.

10073

rcErrInvalidConnectionKeyword

Invalid connection setting keyword.

10074

rcErrConnectionValueReadOnly

Connection setting cannot be changed.

10075

rcErrConnectionTypeReadOnly

Connection type cannot be changed.

10076

rcErrNoSelection

No selection exists.

10077

rcErrNothingFound

No text found.

10078

rcErrInvalidKeywordForType

Connection keyword is invalid for the current connection type.

10079

rcErrDisconnectedDuringWait

Disconnected from host while reading or waiting for text.

10080

rcErrNeedNativeHost

A native mode version of the host file transfer program is required.

10081

rcErrNeedNewerHost

A newer version of the host file transfer program is required.

10083

rcErrCommandNotValidInAnsiMode

Command is not valid when Reflection is in ANSI mode.

10084

rcErrCommandOnlyValidInAnsiMode

Command is only valid when Reflection is in ANSI mode.

10085

rcErrCantOpenInternetSession

Unable to open Internet session.

10086

rcErrCantConnectToFTPHost

Unable to connect to FTP host.

10087

rcErrCantLogInToFTPHost

Unable to log in to FTP host.

10088

rcErrHostFileDoesntExist

File does not exist on FTP host.

10089

rcErrFTPLogInCancelled

FTP log in cancelled.

10090

rcErrCantOpenFileOnHost

Unable to open file on FTP server.

10091

rcErrCantUpdateFile

File could not be updated.

10092

rcErrHostFileExists

Host file already exists.

10093

rcErrMethodNotValid

Method is not valid for connection type.

10094

rcErrNotInFTPServerMode

File transfer needs to be running in FTP server mode.

10095

rcErrMacroNoExist

The specified macro does not exist.

10096

rcErrUnavailableWhenControl.

This function not available when running Reflection as an ActiveX control.

10097

rcErrUnavailableWhenEmbedded

This function not available when running Reflection as a document object.

10098

rcErrCannotLoadLibrary

Cannot load connection specific library. Check your network software configuration.

10099

rcErrDirectoryDoesNotExist

The specified directory does not exist.

10100

rcErrInvalidMacroName

Macro name is invalid.