<?xml version='1.0' encoding='iso-8859-1'?> <!-- $Revision: 1.1 $ --> <!-- Generated by xml_proto.php v2.0. Found in /scripts directory of phpdoc. --> <refentry id="function.variant-cast"> <refnamediv> <refname>variant_cast</refname> <refpurpose> Convert a variant into a new variant object of another type </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>object</type><methodname>variant_cast</methodname> <methodparam><type>object</type><parameter>variant</parameter></methodparam> <methodparam><type>int</type><parameter>type</parameter></methodparam> </methodsynopsis> <para> This function makes a copy of <parameter>variant</parameter> and then performs a variant cast operation to force the copy to have the type given by <parameter>type</parameter>. <parameter>type</parameter> should be one of the <constant>VT_XXX</constant> constants. </para> <para> This function wraps VariantChangeType() in the COM library; consult MSDN for more information. </para> <para> See also <function>variant_set_type</function>. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->