Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can someone help translate a function call to a Delphi d
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00739174
Message ID:
00740088
Vues:
27
>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
Fil
Voir

Click here to load this message in the networking platform