Only if you need to carry out a string assignment or operation on it
somewhere.
You can also use the as operator i.e. with X as Y do begin
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Jeremy Coulter
> Sent: Tuesday, 31 October 2000 09:27
> To: Multiple recipients of list delphi
> Subject: [DUG]: Any Advantage ?
>
>
> Hi all.
>
> Just a general question really. I have an OLE Variant that is being passed
> from an app to an OCX.
>
> I am treating this OLEVariant as a string, so is there in
> advantage is going
> :-
>
> *****************
> var
> myVariable : string;
> begin
> myVariable := String(OLEVariant_Variable) ; //Cast as a string
> end;
> *****************
>
> Cheers, Jeremy Coulter
>
>
>
> ******************************************************************
> **************
> This email or attachment(s) may contain confidential or legally
> privileged
> information intended for the sole use of the addressee(s). Any
> use, redistribution,
> disclosure, or reproduction of this message, except as intended,
> is prohibited.
> If you received this email in error, please notify the sender and
> erase all
> copies of the message, including any attachments.
>
> Any views or opinions expressed in this email (unless otherwise
> stated) may not
> represent those of Pegasus Health Ltd.
>
> ******************************************************************
> **************
> ------------------------------------------------------------------
> ---------
> New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED]
> with body of "unsubscribe delphi"
>
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"