Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can someone help translate a function call to a Delphi d
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00739174
Message ID:
00739931
Views:
30
A PChar is like a String. The diference (mainly) is that a PCHAR String is not null-terminated and a String datatype in Delphi is null-terminated and dynamicall allocate the memory. Outside Delphi, like VFP, is safe map to the local String datatype...That it, PCHAR&String are the same animal, with diferent internal manipulation that is not important outside Delphi.

If you need acces a array, is necesary send from VFP a array declared with Declare arrar[1] (maybe the exact size, if necesary) and BY REFERENCE. But, in this case, TChar is array of individual chars, and is possible map symple to a String type, becuase in Delphi, all strings are array of char and become type compatibles (But i think that you want best a array manipulation).

In Delphi, is possible declare a parameter in diferent modes, in/out,in,out,retval, and by value & by reference. In this case, a VAR meaning a IN/OUT parameters(like @Parameter in VFP) so the value must be send by reference and not by value (By default, all Delphi params are by value).

Enough?
The Life is Beautiful!

Programmer in
Delphi, VS.NET
MCP
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform