GetBasicReturnStringMode

Description

Returns the return string mode for how Strings are returned for VBScript hooks and scripts. Returns either AD_RETURN_STRING_UNICODE or AD_RETURN_STRING_LOCAL.

The return string mode setting does not alter the format of a returned String. If the return string mode is set to AD_RETURN_STRING_LOCAL and if a character in the returned string is not in the local character set, an exception is thrown. Exceptions can be checked with the "On Error" and "Err.description" utilities. Pour plus d'informations, voir Contrôle des erreurs et contrôle de validité.

Remarque : This method became available in version 7.0.0 and is for VBScript only. It is not available for Perl.

Syntaxe

VBScript

session.GetBasicReturnStringMode 
Identificateur
Description
session
Objet Session représentant la session en cours d'accès à la base de données.
Return value
Returns a Long containing an Return strong mode enumerated constant.

Exemple

VBScript

    Dim session As Object
    Set session = CreateObject("CLEARQUEST.SESSION")
    Dim savedMode
    savedMode= session.GetBasicReturnStringMode()
    session.SetBasicReturnStringMode(AD_RETURN_STRING_LOCAL)
    ' Do something that requires LOCAL mode:
    .....
    session.SetBasicReturnStringMode(AD_RETURN_STRING_UNICODE)
    ' Do something that requires UNICODE mode: 
    ....
    ' Restore the original mode
    session.SetBasicReturnStringMode(savedMode)

Commentaires