Datasnap.Provider.VarArrayFromStrings

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function VarArrayFromStrings(Strings: TStrings): Variant;

C++

extern DELPHI_PACKAGE System::Variant __fastcall VarArrayFromStrings(System::Classes::TStrings* Strings);

Properties

Type Visibility Source Unit Parent
function public
Datasnap.Provider.pas
Datasnap.Provider.hpp
Datasnap.Provider Datasnap.Provider

Description

Creates a Variant array that contains the strings in a TStrings object.

Call VarArrayFromStrings to create a Variant array to represent the strings in a TStrings object. VarArrayFromStrings creates a new Variant array of WideString values, where each WideString corresponds to a string in the specified TStrings object.

Strings is the TStrings object that supplies the strings for the Variant array.

VarArrayFromStrings returns the new Variant array.

See Also