Topic Path: Symbol Reference > Classes > TIdBaseComponent Class > TIdBaseComponent Methods > CType Method > CType Method (TIdStrings)
ContentsIndexHome
PreviousUpNext
TIdBaseComponent.CType Method (TIdStrings)

Performs type conversion for the platform-specific class instance.

function CType(
    aStrings: TIdStrings
): StringCollection; overload;
Parameters 
Description 
aStrings 
TIdStrings class instance to convert to a StringCollection type. 

StringCollection - StringCollection for the type conversion.

CType is an overloaded StringCollection function used to perform type conversion for the platform-specific class instance in aStrings. 

CType is available in Visual Studio builds of the Indy library (specifically for VB.Net programs) which do not have access to the implicit conversions in the Borland RTL. 

CType is used to convert the TIdStrings class instance in aStrings to a StringsCollection class instance. 

Use overloaded variants of the method to convert an FCL System.IO.Stream class instance to a native TStream class instance. 

Use overloaded variants of the method to convert a StringCollection class instance to a native TIdStrings class instance.

TIdBaseComponent.CType

Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.