Luiz Paulo Gama Barreto wrote:
> 
> 1. Can I use StrIToA to convert ULongs to text?
> In case of yes, here its declaration: "CharPtr StrIToA (CharPtr s, Long i)"
> Wich CharPtr contains the converted text? The returned text, or the referenced 
>pointer?
> Why isn't this function void returned?

Yes, you can use StrIToA.  Both pointers will reference the memory
allocated to store the result string.  You can find more information on
StrIToA here:

    
http://oasis.palm.com/devzone/knowledgebasearticle.cfm?article_id=1301


> 2. How to deal with the price stuff in the form, regarding the need of commas and 
>decimals places?
> Do I have to put the comma after converting the ULong to text?
> In order to save to the database, do I have to extract the comma before writing to 
>the DB?

PalmOS does not include any currency formatting functions; you will need
to implement your own code to format the string.  If you wish to store
this information as a ULong in a record in your database, you will need
a function to convert the formatted string to a ULong before writing it
to the database.

Paul . . .


-- 
 ___________________________________________________________________
  dpw Designs                    http://www.pe.net/firm/dpw-designs
                                 mailto:[EMAIL PROTECTED]

Reply via email to