From 8f16cc3ca648872d4f913e754e1025fb6ee79806 Mon Sep 17 00:00:00 2001 From: Harald Radi Date: Fri, 18 May 2001 15:04:09 +0000 Subject: [PATCH] added VARIANT section git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@47771 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/com.xml | 69 ++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 68 insertions(+), 1 deletion(-) diff --git a/functions/com.xml b/functions/com.xml index 1eb2d13b69..28bc2b3a61 100644 --- a/functions/com.xml +++ b/functions/com.xml @@ -100,7 +100,8 @@ $word = null; COM example (2) $conn = new COM("ADODB.Connection") or die("Cannot start ADO"); -$conn->Open("Provider=SQLOLEDB; Data Source=localhost; Initial Catalog=database; User ID=user; Password=password"); +$conn->Open("Provider=SQLOLEDB; Data Source=localhost; +Initial Catalog=database; User ID=user; Password=password"); $rs = $conn->Execute("SELECT * FROM sometable"); // Recordset @@ -138,6 +139,72 @@ $conn = null; + + + VARIANT + VARIANT class + + + $vVar = new VARIANT($var) + + + Description + + A simple container to wrap variables into VARIANT structures. + + + + Methods + + + string VARIANT::VARIANT + mixed value/optional> + int type + int codepage + + + + VARIANT class constructor. Parameters: + + value + + + initial value. if omitted an VT_EMPTY object is created. + + + + type + + + specifies the content type of the VARIANT object. Possible values are + VT_UI1, VT_UI2, VT_UI4, + VT_I1, VT_I2, VT_I4, + VT_R4, VT_R8, VT_INT, VT_UINT, + VT_BOOL, VT_ERROR, VT_CY, + VT_DATE, VT_BSTR, VT_DECIMAL, + VT_UNKNOWN, VT_DISPATCH and VT_VARIANT. These values are + mutual exclusive, but they can be combined with VT_BYREF to specify beeing a value. If omitted, + the type of value is used. Consult the msdn library for additional information. + + + + codepage + + + specifies the codepage that is used to convert php-strings to + unicode-strings and vice versa. Possible values are + CP_ACP, CP_MACCP, + CP_OEMCP, CP_SYMBOL, + CP_THREAD_ACP, CP_UTF7 + and CP_UTF8. + + + + + + + + com_load