You are the Champion, with your code working very well
copy( Form3.RichEdit1.Text, 1, pos(chr(13), Form3.RichEdit1.Text ))
Thank you very much K245
My Visual Database → Posts by Hoang
Pages 1
You are the Champion, with your code working very well
copy( Form3.RichEdit1.Text, 1, pos(chr(13), Form3.RichEdit1.Text ))
Thank you very much K245
I am Following your advice but no work?
Please, anyone can give me advice on how to make a copy full of one first line of RichEdit component to TextBox?
For example, here I can Copy 30 letters of the first line but not a full line.
frmNewNote.EdTitle.Text := Copy(frmNewNote.RichEdit1.Text,0,30); ///Copy 30 letters
What I should change in my script? Thank you very much in advance
Here you can look for a freeware program to help you use PC Camera as a Barcode reader.
bytescout.com/products/developer/barcodereadersdk/bytescoutbarcodereadersdk_read_barcode_from_web_camera.html
Thank you very much. I want to translate to Vietnamese language. I try to add 1 billion, 2 billion then result running is correct, but if I add 3 billion then result come out is not correct. Please help me to check.
function HundredAtATime(TheAmount: Extended): string;
begin
Result := '';
TheAmount := Abs(TheAmount);
while TheAmount > 0 do
begin
if TheAmount >= 2000000000 then /// Note: If input more than 2,2 billion then program not running correct
begin
Result := Result + 'Hai tỷ ';
TheAmount := TheAmount - 2000000000;
end;
if TheAmount >= 1000000000 then
begin
Result := Result + 'Một tỷ ';
TheAmount := TheAmount - 1000000000; ///I try to increase more than 1 billion, from 1 biilion to 2,2 billion program runing Ok
end;
if TheAmount >= 900 then
begin
Result := Result + 'Chín trăm ';
TheAmount := TheAmount - 900;
end;
....
For more detail my question: I am try to use function ToWords(value: real; currencyName: string = ''usd''), it work very well even amount 50 billion in English. But because I need to translate to other language therefore I try to use your script, in that case if amount more than 2 billion then the script will work not correct. How to change in your script? Thank you in advance for your advise.
Thank you very much for your answer. If in case using your software in some country need to using more than billion (Ex: 50 Billion) how to change in your script?
Thank you for your example to use script to convert amount to word. But maximum only can convert Billion, It can not work with Trillion?
How can I make it work with amounts as Trillion? Please help
Pages 1
My Visual Database → Posts by Hoang
Powered by PunBB, supported by Informer Technologies, Inc.
Theme Hydrogen by Kushi