[DUG] using Python for delphi in XE10

Ian Fear I_J_Fear at xtra.co.nz
Tue Apr 25 14:42:18 NZST 2017


I am converting a project that uses py4D. Have the lates version from github
or what ever.

Using the function

 

GetPythonEngine.PyArg_ParseTuple(args, 's', [sFieldName])  

 

 

When sfieldName  : PAnsiChar;

get a complier error  E2001 ordinal type required

 

py4D is expecting a pAnsiChar

 

if I change  to sfieldName  : AnsiChar;

 

the compiler is happy but the result is #0

a null char I presume

any Ideas on this would be greatly appreciated

 

Thanks in advance 

Ian

 

Ian Fear

B Agr Sc (Lincoln)

GDip InfSys(Massey)

 

Fear Consulting Ltd

405 Old Taupo Road

Rotorua

Home /work 07 347 6015

Mobile 027 474 2772

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20170425/ea729cf3/attachment.html 


More information about the Delphi mailing list