Groups > Borland > Delphi web services WSDL > Re: Please Critical Issue




Please Critical Issue

Please Critical Issue
Fri, 29 Jun 2007 00:43:57 -030
Hi, i would like to know how I work with TXSDecimal, in a webservice 
client....

Please, give the examples in delphi 2007 Pro

Tks

Fabio
Brazil

Post Reply
Re: Please Critical Issue
Tue, 10 Jul 2007 12:02:29 -070
Hello Fabio,

I probably need more information to correctly answer your question. In
general you initialize the TXSDecimal from a string. You can also initialize
it with a TBcd type. To handle the latter there's a host of XXXXtoBcd and
BcdToXXXX methods (where 'XXX' is 'Double', 'Integer', 'Curr', etc).

If you take a look at the Amazon Client posted to CodeCentral recently,
you'll see example of initializing a TXSDecimal to specify the item page of
a search:

     SearchReqs[0].ItemPage := TXSDecimal.Create;

    { Adjust for page being requested }
      SearchReqs[0].ItemPage.XSToNative(IntToStr(CurPage));

The above is just an example. Can you post some details of what you want to
initialize from/with? Thank you.

Cheers,

Bruneau.

Post Reply
about | contact