Information générale
Catégorie:
Codage, syntaxe et commandes
>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?
That's great. I'll try it like you recommend. I was thinking I'd have to handle it like a struct. If you say the array can be passed by reference and all I need to do is DIMENSION (not declare, right?) aRetarray[1024], that's pretty simple. Thanks
Allen
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement