473,395 Members | 1,412 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,395 software developers and data experts.

Numbers as Words

Is there something in windows that will take a given set of numbers and
re-write them as words - such as for a check?

A friend wrote this macro for Excel and I didn't know if this was
something that could be written in VB.NET without excel.
Declare Sub Recibo Lib "dlltcast.dll" (cifra As Long, ByVal _
texto As String)

Function letras(minumero)

Dim texto As String * 255
Dim cifra As Long

texto = String(255, 0)
cifra = CLng(minumero)

Call Recibo(cifra, texto)

letras = texto

End Function

Darin

*** Sent via Developersdex http://www.developersdex.com ***
Apr 13 '07 #1
8 1433
Darin,

Peter Huang showed us this page some years ago it is VB6 however almost
VBNET

Cor

"Darin" <darin_nospam@nospameverschreef in bericht
news:eX**************@TK2MSFTNGP04.phx.gbl...
Is there something in windows that will take a given set of numbers and
re-write them as words - such as for a check?

A friend wrote this macro for Excel and I didn't know if this was
something that could be written in VB.NET without excel.
Declare Sub Recibo Lib "dlltcast.dll" (cifra As Long, ByVal _
texto As String)

Function letras(minumero)

Dim texto As String * 255
Dim cifra As Long

texto = String(255, 0)
cifra = CLng(minumero)

Call Recibo(cifra, texto)

letras = texto

End Function

Darin

*** Sent via Developersdex http://www.developersdex.com ***

Apr 14 '07 #2
On Apr 13, 8:45 pm, "Cor Ligthert [MVP]" <notmyfirstn...@planet.nl>
wrote:
Darin,

Peter Huang showed us this page some years ago it is VB6 however almost
VBNET

Cor

"Darin" <darin_nospam@nospameverschreef in berichtnews:eX**************@TK2MSFTNGP04.phx.gbl. ..
Is there something in windows that will take a given set of numbers and
re-write them as words - such as for a check?
A friend wrote this macro for Excel and I didn't know if this was
something that could be written in VB.NET without excel.
Declare Sub Recibo Lib "dlltcast.dll" (cifra As Long, ByVal _
texto As String)
Function letras(minumero)
Dim texto As String * 255
Dim cifra As Long
texto = String(255, 0)
cifra = CLng(minumero)
Call Recibo(cifra, texto)
letras = texto
End Function
Darin
*** Sent via Developersdexhttp://www.developersdex.com***
Peter Huang showed us this page some years ago it is VB6 however almost
VBNET
What page?

Thanks,

Seth Rowe

Apr 14 '07 #3
On Fri, 13 Apr 2007 15:02:49 -0700, Darin wrote:
Is there something in windows that will take a given set of numbers and
re-write them as words - such as for a check?

A friend wrote this macro for Excel and I didn't know if this was
something that could be written in VB.NET without excel.

Declare Sub Recibo Lib "dlltcast.dll" (cifra As Long, ByVal _
texto As String)

Function letras(minumero)

Dim texto As String * 255
Dim cifra As Long

texto = String(255, 0)
cifra = CLng(minumero)

Call Recibo(cifra, texto)

letras = texto

End Function

Darin

*** Sent via Developersdex http://www.developersdex.com ***
FYI if you need this for a Crystal Report, there is a function that will do
this for you
--
Bits.Bytes
http://bytes.thinkersroom.com
Apr 14 '07 #4
rowe_newsgroups wrote:
On Apr 13, 8:45 pm, "Cor Ligthert [MVP]" <notmyfirstn...@planet.nl>
>Peter Huang showed us this page some years ago it is VB6 however almost
VBNET
<http://groups.google.com/group/microsoft.public.dotnet.languages.vb/browse_frm/thread/ca986ed00301eed4/e55c97cf8131e8f5?lnk=st&q=&rnum=1#e55c97cf8131e8f5 >
>
What page?
<http://www.vbexplorer.com/VBExplorer/tips/src36.asp>

--
Greetings
Matthias
Apr 14 '07 #5
Darin,

Thanks,

Cor

"rowe_newsgroups" <ro********@yahoo.comschreef in bericht
news:11**********************@b75g2000hsg.googlegr oups.com...
On Apr 13, 8:45 pm, "Cor Ligthert [MVP]" <notmyfirstn...@planet.nl>
wrote:
>Darin,

Peter Huang showed us this page some years ago it is VB6 however almost
VBNET

Cor

"Darin" <darin_nospam@nospameverschreef in
berichtnews:eX**************@TK2MSFTNGP04.phx.gbl ...
Is there something in windows that will take a given set of numbers and
re-write them as words - such as for a check?
A friend wrote this macro for Excel and I didn't know if this was
something that could be written in VB.NET without excel.
Declare Sub Recibo Lib "dlltcast.dll" (cifra As Long, ByVal _
texto As String)
Function letras(minumero)
Dim texto As String * 255
Dim cifra As Long
texto = String(255, 0)
cifra = CLng(minumero)
Call Recibo(cifra, texto)
letras = texto
End Function
Darin
*** Sent via Developersdexhttp://www.developersdex.com***
>Peter Huang showed us this page some years ago it is VB6 however almost
VBNET

What page?

Thanks,

Seth Rowe

Apr 14 '07 #6
Matthias,

Thanks,

Cor

"Matthias Tacke" <Ma******@Tacke.deschreef in bericht
news:ev**********@news.albasani.net...
rowe_newsgroups wrote:
>On Apr 13, 8:45 pm, "Cor Ligthert [MVP]" <notmyfirstn...@planet.nl>
>>Peter Huang showed us this page some years ago it is VB6 however almost
VBNET

<http://groups.google.com/group/microsoft.public.dotnet.languages.vb/browse_frm/thread/ca986ed00301eed4/e55c97cf8131e8f5?lnk=st&q=&rnum=1#e55c97cf8131e8f5 >
>>
What page?
<http://www.vbexplorer.com/VBExplorer/tips/src36.asp>

--
Greetings
Matthias

Apr 14 '07 #7
I will have to look at the internal stuff since I already have this
working for english, but I need it in spanish, which writes their
numbers completely different.

Darin

*** Sent via Developersdex http://www.developersdex.com ***
Apr 14 '07 #8
Darin wrote:
I will have to look at the internal stuff since I already have this
working for english, but I need it in spanish, which writes their
numbers completely different.
Hello Darin,

I found this site: <http://www.sf.airnet.ne.jp/~ts/language/number.html>
May be helpful for internationalization.

The English wikipedia stops with 10
<http://en.wikipedia.org/wiki/List_of_numbers_in_various_languages>

The German one has less languages but 0-19, 20..100,
1000, 10.000, 100.000, 1.000.000, 1.000.000.000, 1.000.000.000.000
<http://de.wikipedia.org/wiki/Zahlen_in_unterschiedlichen_Sprachen>

--
Greetings
Matthias
Apr 14 '07 #9

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

Similar topics

8
by: fo | last post by:
Does anyone know if there is a free code available to convert numbers to text and/or text to numbers? Thanks
3
by: Jeff Uchtman | last post by:
I have found a lot of VB on numbers to words, can this also be done in ASP? Would like to convert a formated currency output to words. Thanks Jeff
5
by: dawenliu | last post by:
Hi, I have a file with this content: xxxxxxx xxxxxxxxxx xxxxx xxxxxxx 1 0 0 0 1 1 0 (many more 1's and 0's to follow)
3
by: Matt Smolic | last post by:
Does anyone know where I can get some info on creating customer account numbers, part numbers and such. In other words what the logic is behind their creation. I am not looking for code, just how...
10
by: brainy_muppet | last post by:
Basically, I have a code with is almost finished but I've having difficultly with the last stage of the process. I have a program that gets assigns different words with a different value via...
5
by: lim4801 | last post by:
I am currently in doing a program which is given by my tutor: Contemplate that you are working for the phone company and want to sell "special" phone numbers to companies. These phone numbers are...
6
by: rcarwise | last post by:
Hi am a begining programmer still in college I wanted to know could I get help on this java program on netbeans I have to write a program that reads a non- negative integer ( 4 digits-max) and writes...
24
by: pereges | last post by:
I need to generate two uniform random numbers between 0 and 1 in C ? How to do it ? I looked into rand function where you need to #define RAND_MAX as 1 but will this rand function give me ...
3
by: Bouzy | last post by:
I have a list of words and am trying to replace all the numbers in my list with whitespace. for word in words: numbers = re.search('+', word) word = clearup(word) if word in...
5
geolemon
by: geolemon | last post by:
I'm building a small-scale MRP system for an electronics manufacturing business. There are assemblies that are built, and parts that go into those assemblies. The individual component parts that go...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.