1 (edited by boulenajm 2018-03-07 17:25:43)

Topic: Number to Words

Is there any way to convert number to words?

If with cents it will be perfect... I have tried several scripts available online but they do not seem to work...

Thanks indeed...

Example:

10.23 >> Ten (Currency) and 23 cents...

Re: Number to Words

Hi,
Does the attached help?
Regards,
Derek.

Post's attachments

Attachment icon boulenajm.zip 334.85 kb, 72 downloads since 2018-03-07 

3 (edited by boulenajm 2018-03-07 23:36:59)

Re: Number to Words

You guys are THE BEST!

Thanks indeed.

Re: Number to Words

Hello boulenajm, Derek

The same answer, but with a little contol about validity of text entered in Edit1 :

procdure Form1_Button1_OnClick (Sender: TObject; var Cancel: boolean);
begin
     if ValidFloat(Form1.Edit1.Text) then
         Form1.Edit2.Text:=ToWords(Form1.Edit1.Value);
end;

Regards

JB