JCL Help:StringsToPCharVector@PAnsiCharVector@TJclAnsiStrings

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Converts a stringlist into a PCharVector.


Pascal

 function StringsToPCharVector(var Dest: PCharVector; const Source: TStrings): PCharVector;
function StringsToPCharVector(var Dest: PAnsiCharVector; const Source: TJclAnsiStrings): PAnsiCharVector;


Parameters

Parameters Description
var Dest: PCharVector On return receives a pointer to the PCharVector.
const Source: TStrings String list to convert to a PCharVector.


Return Value

The value placed in Dest to allow using the function on parameter position.


Description

A PCharVector is an array of PChar's where each PChar points to a null terminated string. The array is delimited by a nil (NULL) pointer. In the Windows API this is usually typed as a PPSTR. This function takes a string list and builds a PCharVector from it. The memory allocated to store the PCharVector must eventually be released by the caller, preferably using FreePCharVector.


See Also

PCharVectorToStrings PCharVectorCount FreePCharVector


About

Unit

JclAnsiStrings


Donator

Marcel van Brakel


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page