Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2012-02

TXMLDataPacketReader width field attribute

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Dimitrios Chr. Ioannidis

Hi all,

the other day i had to do a utility to talk with a delphi written app via its web services api. In no time i had build a prototype with WST which worked perfectly.

Now because the result sets was midas's datapacket i added a bufdataset and used the xmldatapacketreader unit. The only problem i had was that the result midas's datapacket, for the field type 'string', the attribute 'WIDTH' was in upper case. So i copied and renamed the unit and just changed the check from
AFieldDef.Size:=StrToIntDef(GetNodeAttribute(AFieldNode,'width'),0); to AFieldDef.Size:=StrToIntDef(GetNodeAttribute(AFieldNode,'WIDTH'),0);

Doeas anybody know if this is the default midas's datapacket format so the check in the xmldatapacketreader needs to be changed ?

regards,

Dimitrios Chr. Ioannidis

Reply by email