User Tools

Site Tools


api:dk11:delphi:gisstreams.tgis_stream.writevarasstring_variant_integer

Table of Contents

TGIS_Stream.WriteVarAsString method

DK11 for Delphi | GisStreams.TGIS_Stream.WriteVarAsString | Constructors | Methods | Properties

Write a variant as a string to the stream. If written string is smaller then

If written string is smaller then _count bytes then rest of the string will be filled with spaces.

Syntax

// Delphi
public
  function WriteVarAsString(
    const _buf : Variant;
    const _count : Integer
  ) : Integer;
// C++ Builder
public:
  int WriteVarAsString(
    Variant* const _buf,
    const int _count
  );

Parameters

Name Type Description
_buf Variant object to be written
_count Integer number of bytes which string should occupy in the stream

Result

Type Description
Integer Number of written bytes.

Remarks

Upon writing string will be converted to representation defined by CodePage property.

2020/05/07 01:10

Page Tools