Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space TSDOC and version E33
Sv translation
languageen

Description

Obtains the error message associated with any error code returned from other API functions.

Syntax

Code Block
languagevb
status = LINKStringLoad( <Status>, <Message>, <MessageBufferSize> )

Parameters

ParameterInput/OutputTypeDescription
StatusInputLongThe numeric value returned by one of the LINKxxx functions.
MessageOutputStringThis is a string that will receive the message text associated with the status code.
MessageBufferSizeInputLongThis is the maximum size that the string should be.

Example

Code Block
languagevb
Dim szBuffer As String*255
status = LINKGenerateReport(...)
LINKStringLoad( status, szBuffer, 255 )
strErr = Left$( szBuffer, Instr( szBuffer, Chr(0) ) - 1 ) 'Convert the string to a LotusScript string
MessageBox strErr
Sv translation
languageja

説明

API 関数から指定されたエラーコードに関連するテキスト文字列を返します。

シンタックス

Code Block
languagevb
status = LINKStringLoad( <Status>, <Message>, <MessageBufferSize> )

パラメータ

パラメータ入力/出力TypeDescription
Status入力LongLINKxxx 関数により返される数値。
Message出力String

Status コードに関連付けられたメッ セージテキストを受け取る文字列。

MessageBufferSize入力Long文字列の最大文字数。

Example

Code Block
languagevb
Dim szBuffer As String*255
status = LINKGenerateReport(...)
LINKStringLoad( status, szBuffer, 255 )
strErr = Left$( szBuffer, Instr( szBuffer, Chr(0) ) - 1 ) '文字列をロータススクリプト文字列に変換する
MessageBox strErr