473,403 Members | 2,338 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

Add fill characters to ConvertCurrencyToEnglish code

TS
Hi,
I'm using the ConvertCurrencyToEnglish module readily available on the
internet to convert some currency figures to text. However, I want
the code do one additional thing and I'm not sure how to go about it.
I want the data field to fill a particular size of space on my form,
and I want the area that does not include text from the currency
converstion to be filled with some sore of symbol like "*******" or
"///////////". So for example if my data read "15.25", the field on
the form would show as "Fifteen Dollars and Twenty-Five
Cents************************************". What's the best strategy?
Should this additional functionality be part of the ConvertCurrency
code or should I create an additional module that works on top of it?
Any guidance would be appreciated. Thanks.
Teek
Nov 12 '05 #1
4 3467
"TS" <ps*****@ix.netcom.com> wrote in message
news:4a*************************@posting.google.co m...
Hi,
I'm using the ConvertCurrencyToEnglish module readily available on the
internet to convert some currency figures to text. However, I want
the code do one additional thing and I'm not sure how to go about it.
I want the data field to fill a particular size of space on my form,
and I want the area that does not include text from the currency
converstion to be filled with some sore of symbol like "*******" or
"///////////". So for example if my data read "15.25", the field on
the form would show as "Fifteen Dollars and Twenty-Five
Cents************************************". What's the best strategy?
Should this additional functionality be part of the ConvertCurrency
code or should I create an additional module that works on top of it?
Any guidance would be appreciated. Thanks.
Teek


Feed your converted amount into a function like this:

Right(String(50, "*") & yourConvertedValue, 50)

The 50 could be whatever number of characters you needed to fill the space
you've got. This works a lot better with a monospaced font like courier.

HTH, Mike

Nov 12 '05 #2
"Mike MacSween" <mi***********************@btinternet.com> wrote in message
news:403c4cda$0$4098
Feed your converted amount into a function like this:

Right(String(50, "*") & yourConvertedValue, 50)


OK, read the question first Mike.

Left(yourConvertedValue & string(50, "*"), 50)

Sorry, Mike
Nov 12 '05 #3
Teek,
Try this solution. It sounds like it just might work for your problem:

Knowldge Base Article ID: Q117911
NF: How to Create a Dot Leader Between Fields

Using the function in this article, you can use any character for the filler

Hope this helps some.

Tom C

Copyright (c) Microsoft Corporation. All rights reserved.
"TS" <ps*****@ix.netcom.com> wrote in message
news:4a*************************@posting.google.co m...
Hi,
I'm using the ConvertCurrencyToEnglish module readily available on the
internet to convert some currency figures to text. However, I want
the code do one additional thing and I'm not sure how to go about it.
I want the data field to fill a particular size of space on my form,
and I want the area that does not include text from the currency
converstion to be filled with some sore of symbol like "*******" or
"///////////". So for example if my data read "15.25", the field on
the form would show as "Fifteen Dollars and Twenty-Five
Cents************************************". What's the best strategy?
Should this additional functionality be part of the ConvertCurrency
code or should I create an additional module that works on top of it?
Any guidance would be appreciated. Thanks.
Teek

Nov 12 '05 #4
TS
Thanks Tom & Mike. I'll try both and see which one works, or should I
say which one I can get to work. Thanks.
Teek
"Tom C" <ct**@simflex.com> wrote in message news:<40******@news.simflex.com>...
Teek,
Try this solution. It sounds like it just might work for your problem:

Knowldge Base Article ID: Q117911
NF: How to Create a Dot Leader Between Fields

Using the function in this article, you can use any character for the filler

Hope this helps some.

Tom C

Copyright (c) Microsoft Corporation. All rights reserved.
"TS" <ps*****@ix.netcom.com> wrote in message
news:4a*************************@posting.google.co m...
Hi,
I'm using the ConvertCurrencyToEnglish module readily available on the
internet to convert some currency figures to text. However, I want
the code do one additional thing and I'm not sure how to go about it.
I want the data field to fill a particular size of space on my form,
and I want the area that does not include text from the currency
converstion to be filled with some sore of symbol like "*******" or
"///////////". So for example if my data read "15.25", the field on
the form would show as "Fifteen Dollars and Twenty-Five
Cents************************************". What's the best strategy?
Should this additional functionality be part of the ConvertCurrency
code or should I create an additional module that works on top of it?
Any guidance would be appreciated. Thanks.
Teek

Nov 12 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Matthew | last post by:
Is there a javascript or alternative default fill friendly way for counting down the remaining characters left in a form box?
4
by: Barry Margolin | last post by:
Can I do the following with Javascript? My state has a web site that can be used for online filing for unemployment benefits. Every week I have to go to the site and fill in a form, checking...
0
by: David Scemama | last post by:
Hi, I'm trying to fill a text control or a rich text control with the ASCII characters table, using code page 437. All the characters appears correctly except the semi graphic ones. Does...
17
by: JC | last post by:
sorry . i got one more problem i got a string with 4 char. i want to put that in a string with 26 char. how can i fill space on the remain char.. ?? is that i need to do a while loop do fill the...
2
by: Steve | last post by:
I have labelbox1 that generates a random number between 0 and 12. In labelbox2 I want it to be filled with an ascii character code "chr(73)". What ever number appears in the labelbox1 is how many...
30
by: Raymond Hettinger | last post by:
Proposal -------- I am gathering data to evaluate a request for an alternate version of itertools.izip() with a None fill-in feature like that for the built-in map() function: >>> map(None,...
3
by: pedestrian via DotNetMonster.com | last post by:
Let's say I declares an array of string (of size 1000), how to fill every elements of it with random characters? Dim myStrArray(999) As String ... Thanks... -- Pedestrian, Penang.
2
by: RP | last post by:
I have an Access Table with following columns: GID (auto number) PID number TreeID Text ItemName Text This table consists of records in the following manner: GID PID TreeID ...
5
by: yoshimishu | last post by:
i have to create two text boxes. If i fill in first text box the second textbox shoud automatically display the number of letters displayed in first text box. If the number of letters in first text...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.