Location: Symbol Reference > Classes > TJwTerminalServer Class > TJwTerminalServer Properties > TJwTerminalServer.Data Property
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
TJwTerminalServer.Data Property
Pascal
property Data: Pointer;

Data allows storage of a pointer to user specific data and can be freely used.

var
  ATerminalServer: TJwTerminalServer;
  s: AnsiString;
begin

  // Create Terminal Server instance and allocate memory for it
  ATerminalServer := TJwTerminalServer.Create;

  s := 'Remember this text';

  // Store pointer in Data property
  ATerminalServer.Data := PAnsiChar(s);

  s := '';
  ...

  // and retreive it!
  s := ATerminalServer.Data;

  // Don't forget to free!
  ATerminalServer.Free;

end;
Copyright (c) 2010. All rights reserved.
This help was created by Doc-O-Matic sponsored by toolsfactory software inc.
What do you think about this topic? Send feedback!