Techwarelabs Community

Techwarelabs Community (https://www.techwarelabs.com/community/index.php)
-   Software - Applications, Programming, and Games (https://www.techwarelabs.com/community/forumdisplay.php?f=13)
-   -   roman numerals in VB6 (https://www.techwarelabs.com/community/showthread.php?t=9286)

theThinker 03-25-2004 10:29 AM

roman numerals in VB6
 
Could someone please send me code or help for a program in VB6 that converts roman numerals to numbers? It has to be able to handle combinations like XIII and no when a numeral is invalid like XCI. I have been having trouble with this for a while, and I need it for a class I am currently holding a D in. Please respond quickly if you can, it's due the week of March 29th.

Uranium-235 03-25-2004 02:35 PM

this might help a little

http://vbnet.mvps.org/code/helpers/numbertotext.htm

Dragon 03-31-2004 09:10 AM

the trick is to use a function similar to charAt in java.. its been awhile since ive written VB, but you have to look at groups of 2 symbols id think.


All times are GMT -5. The time now is 06:47 AM.

Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.