Results 1 to 31 of 31

Thread: Roman Numeral Calculator

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2006
    Location
    Rugby, England
    Posts
    2

    Question Roman Numeral Calculator

    Hey I'm doing coursework in VB 6 and the task is to:

    • allow a user to enter numbers in Roman numerals, according to the additive rule, each up to a maximum value of 4000 (MMMM)
    • prevent the user entering an invalid Roman numeral
    • display the numbers entered in both Roman numerals and their Arabic decimal equivalent
    • allow the user to enter an operator for addition or subtraction
    • prevent the result of a subtraction being zero or a negative number
    • display the result of the calculation in both Roman and Arabic decimal forms
    • allow the user to clear all displays


    The additive rule in this case is to make sure that you enter numerals in descending order of value and a letter may not be repeated if it can be replaced (e.g. IIIII can be replaced with V). In this question 4 is classed as being IIII and NOT IV.

    I've created an inteface that allows the user to enter an already valid Roman numeral (i.e. not validated by the program itself), it displays the numbers and answers in both numeral and decimal forms, the user can add or subtract the numerals and there is an option to clear all displays.

    But I'm having problems trying to write the validation rules for:

    • making sure the numeral that is entered is in the correct order
    • the additive rule (explained above)


    If anyone can help it would be much appreciated! Thanks!

    xtishx

  2. #2
    Frenzied Member
    Join Date
    May 2003
    Location
    Sydney
    Posts
    1,123

    Re: Roman Numeral Calculator

    well, i didnt go thru all your specifications but what u need to do is do a code check in the change event. what i mean basically is to check what has been entered into a textbox everytime something is typed in.

  3. #3
    Frenzied Member Andrew G's Avatar
    Join Date
    Nov 2005
    Location
    Sydney
    Posts
    1,587

    Re: Roman Numeral Calculator

    Sorry it took so long to reply, but tada . Btw Welcome to the forums

    For this you'll need one textbox and one label

    VB Code:
    1. Const RomanNumerals As String = "IVXLCDM"
    2. Dim MaskedString As String
    3. Dim NumUsed(0 To 7) As Long
    4.  
    5. Private Sub Form_Load()
    6. MaskedString = String(7 * 4, "#")
    7. End Sub
    8.  
    9. Private Sub Text1_KeyPress(KeyAscii As Integer)
    10.  
    11. pos = InStr(1, RomanNumerals, UCase(Chr(KeyAscii)))
    12. If pos And NumUsed(pos) < 4 Then
    13.     strpart = Mid(MaskedString, (pos * 4) - 3, 4)
    14.     strpart = Replace(strpart, "#", UCase(Chr(KeyAscii)), , 1)
    15.     If UCase(Chr(KeyAscii)) = "I" Then
    16.         MaskedString = strpart & Mid(MaskedString, (pos * 4) + 1)
    17.     Else
    18.         MaskedString = Mid(MaskedString, 1, (pos * 4) - 4) & strpart & Mid(MaskedString, pos * 4 + 1)
    19.     End If
    20.    
    21.     NumUsed(pos) = NumUsed(pos) + 1
    22.     KeyAscii = 0
    23. ElseIf KeyAscii = 8 And Text1.SelStart > 0 Then
    24.     Letter = Mid(Text1.Text, Text1.SelStart, 1)
    25.     pos = InStr(1, RomanNumerals, UCase(Letter))
    26.     If NumUsed(pos) > 0 Then NumUsed(pos) = NumUsed(pos) - 1
    27.    
    28.     strpart = Mid(MaskedString, (pos * 4) - 3, 4)
    29.     strpart = Replace(strpart, Letter, "#", , 1)
    30.     If Letter = "I" Then
    31.         MaskedString = strpart & Mid(MaskedString, pos * 4 + 1)
    32.     Else
    33.         MaskedString = Mid(MaskedString, 1, (pos * 4) - 4) & strpart & Mid(MaskedString, pos * 4 + 1)
    34.     End If
    35.    
    36. Else
    37.     KeyAscii = 0
    38. End If
    39.  
    40.     Text1.Text = Replace(MaskedString, "#", "")
    41.     Label1.Caption = (NumUsed(1) * 1) + (NumUsed(2) * 5) + (NumUsed(3) * 10) + _
    42.                      (NumUsed(4) * 50) + (NumUsed(5) * 100) + (NumUsed(6) * 500) + _
    43.                      (NumUsed(7) * 1000)
    44. End Sub

  4. #4
    New Member
    Join Date
    Mar 2006
    Location
    leamington, UK
    Posts
    1

    Re: Roman Numeral Calculator

    hello, im doing the same course as xtishx
    we tried your code Andrew G (thanks by the way) and there is just one small problem, the roman numeral is in the opposite order to what is required. I cant seem to the solution to this problem myself. I think only a simple alteration is needed though id be grateful if somebody would tell us what!
    Thanks again

    the emily

  5. #5
    Frenzied Member Andrew G's Avatar
    Join Date
    Nov 2005
    Location
    Sydney
    Posts
    1,587

    Re: Roman Numeral Calculator

    simply reverse the order in
    VB Code:
    1. Const RomanNumerals As String = "IVXLCDM"
    to
    VB Code:
    1. Const RomanNumerals As String = "MDCLXVI"

  6. #6

    Thread Starter
    New Member
    Join Date
    Mar 2006
    Location
    Rugby, England
    Posts
    2

    Re: Roman Numeral Calculator

    Hey

    I tried reversing the string and now it comes up with the wrong decimal equivalents, i.e. I now equals 1000 and M equals 1...so what do we have to change in the rest of it so that it comes up with the right decimal equivalent?
    xtishx

    Needle naddle noo!
    Where's my specitacles??

  7. #7
    Frenzied Member Andrew G's Avatar
    Join Date
    Nov 2005
    Location
    Sydney
    Posts
    1,587

    Re: Roman Numeral Calculator

    Oops

    VB Code:
    1. Const RomanNumerals As String = "MDCLXVI"
    2. Dim MaskedString As String
    3. Dim NumUsed(0 To 7) As Long
    4.  
    5. Private Sub Form_Load()
    6. MaskedString = String(7 * 4, "#")
    7. End Sub
    8.  
    9. Private Sub Text1_KeyPress(KeyAscii As Integer)
    10.  
    11. pos = InStr(1, RomanNumerals, UCase(Chr(KeyAscii)))
    12. If pos And NumUsed(pos) < 4 Then
    13.     strpart = Mid(MaskedString, (pos * 4) - 3, 4)
    14.     strpart = Replace(strpart, "#", UCase(Chr(KeyAscii)), , 1)
    15.     If UCase(Chr(KeyAscii)) = Left(RomanNumerals, 1) Then
    16.         MaskedString = strpart & Mid(MaskedString, (pos * 4) + 1)
    17.     Else
    18.         MaskedString = Mid(MaskedString, 1, (pos * 4) - 4) & strpart & Mid(MaskedString, pos * 4 + 1)
    19.     End If
    20.    
    21.     NumUsed(pos) = NumUsed(pos) + 1
    22.     KeyAscii = 0
    23. ElseIf KeyAscii = 8 And Text1.SelStart > 0 Then
    24.     Letter = Mid(Text1.Text, Text1.SelStart, 1)
    25.     pos = InStr(1, RomanNumerals, UCase(Letter))
    26.     If NumUsed(pos) > 0 Then NumUsed(pos) = NumUsed(pos) - 1
    27.    
    28.     strpart = Mid(MaskedString, (pos * 4) - 3, 4)
    29.     strpart = Replace(strpart, Letter, "#", , 1)
    30.     If Letter = Left(RomanNumerals, 1) Then
    31.         MaskedString = strpart & Mid(MaskedString, pos * 4 + 1)
    32.     Else
    33.         MaskedString = Mid(MaskedString, 1, (pos * 4) - 4) & strpart & Mid(MaskedString, pos * 4 + 1)
    34.     End If
    35.    
    36. Else
    37.     KeyAscii = 0
    38. End If
    39.  
    40.     Text1.Text = Replace(MaskedString, "#", "")
    41.     Label1.Caption = (NumUsed(1) * 1000) + (NumUsed(2) * 500) + (NumUsed(3) * 100) + _
    42.                      (NumUsed(4) * 50) + (NumUsed(5) * 10) + (NumUsed(6) * 5) + _
    43.                      (NumUsed(7) * 1)
    44. End Sub

  8. #8
    PowerPoster BruceG's Avatar
    Join Date
    May 2000
    Location
    New Jersey (USA)
    Posts
    2,657

    Re: Roman Numeral Calculator

    I have sample code on my site that may assist you.
    On this page:
    http://www.thevbprogrammer.com/tutorials.html
    Under "8. Control Basics", see the Programming Exercise for Roman Numerals.
    "It's cold gin time again ..."

    Check out my website here.

  9. #9
    New Member
    Join Date
    Mar 2006
    Posts
    10

    Re: Roman Numeral Calculator

    Im also doing this course!

    Man its hard!

    Im still in design stage, i dont ven knoe how to use Visual Basic, Ill prolly fail this course, got U in ma test!

    Anyways can any of you who have done it help me out a little, like code where?

    or maybe send me it , lol

    Just this is so confusing, and my teacher doesn't even help me, i dont think he likes me!

  10. #10
    PowerPoster
    Join Date
    Nov 2002
    Location
    Manila
    Posts
    7,629

    Re: Roman Numeral Calculator

    Here's a solution... hopefully the correct one, not a MMMM or IIII or XXXX solution. I don't have VB here so I can't test... this is all theoretical.

    Translate the character string into an addition formula. Replace the "left char less than right char" combinations first using string manipulation, eg Replace() function. Then replace the rest with their proper equivalents.

    CMLXXIV --> 900 + LXX + 4 --> 900 + 50 + 10 + 10 + 4

    locate and replace CM with 900...
    replace CD with 400...
    replace XC with 90...
    replace XL = 40...
    replace IX = 9...
    replace IV = 4...

    Validity check for the previously mentioned replacements, the respective character should not appear again. Example for a CM replacement there should be no other C's, IV no other I's, etc.

    Insert here a character count check... there should be no more than 3 instances of selected characters such as X. Other characters such as V, there should only be one instance.

    continue with replacements of remaining roman characters
    replace M = 1000...
    replace D = 500...
    reaplce C = 100...
    and so on and so forth

    An additional check that the original roman numeral was valid, the decimal values should be decrementing (in some cases equal, but not in the other direction). If you check the previous equation, you will notice that 900 > 50 > 10 >= 10 > 4. This step might not be necessary, I can't say for certain right now.

    Lastly to get the decimal equivalent of the euqation there's a special function (or control??) to equate that. I forgot the name of the function and the project reference necessary. Ask around for that function... the function that gets the math result of a string equation.

    There are minor details, depending on how you use the replace function... such as a trailing operand in which case you'll have to add zero to get a valid equation. I'll let you figure out the minor details.
    Last edited by leinad31; Mar 23rd, 2006 at 07:57 AM.

  11. #11
    New Member
    Join Date
    Mar 2006
    Posts
    10

    Re: Roman Numeral Calculator

    doesn't help me

  12. #12
    PowerPoster
    Join Date
    Nov 2002
    Location
    Manila
    Posts
    7,629

    Re: Roman Numeral Calculator

    Programming is not solely coding... there's also analysis involved.

    In real life, don't expect your boss or systems analyst to give you source code. You will have to learn to understand a narrative explanation (often not written) given to you by a systems analyst. Your job then is to implement the program as specified by the requirements and the design/flow indicated by the analyst then do some debugging..
    Last edited by leinad31; Mar 23rd, 2006 at 08:00 AM.

  13. #13
    New Member
    Join Date
    Mar 2006
    Posts
    10

    Re: Roman Numeral Calculator

    i still carnt do it! baffled beyond belief

  14. #14
    PowerPoster
    Join Date
    Nov 2002
    Location
    Manila
    Posts
    7,629

    Re: Roman Numeral Calculator

    Read up on the Replace() function, the Microsoft Script Control and the Eval() method of the script control.

    Make your own source code implementation and post that here, we can then continue the discussion based on your implementation.
    Last edited by leinad31; Mar 23rd, 2006 at 08:51 AM.

  15. #15
    Frenzied Member DKenny's Avatar
    Join Date
    Sep 2005
    Location
    on the good ship oblivion..
    Posts
    1,171

    Re: Roman Numeral Calculator

    Have a look at my post here.
    Declan

    Don't forget to mark your Thread as resolved.
    Take a moment to rate posts that you think are helpful

  16. #16
    New Member
    Join Date
    Mar 2006
    Posts
    10

    Re: Roman Numeral Calculator

    DKenney!

    What does that code do?

  17. #17
    Frenzied Member DKenny's Avatar
    Join Date
    Sep 2005
    Location
    on the good ship oblivion..
    Posts
    1,171

    Re: Roman Numeral Calculator

    As stated in the commets for the function
    This function returns a string that is the Roman Numeral version of a passed Arabic number. The function will only work if the value is less than 4000.
    Declan

    Don't forget to mark your Thread as resolved.
    Take a moment to rate posts that you think are helpful

  18. #18
    New Member
    Join Date
    Mar 2006
    Posts
    10

    Re: Roman Numeral Calculator

    Ok, ya see i dunt understand im not VB NERD!

    lol, just need a this calculator doing!

  19. #19

  20. #20
    New Member
    Join Date
    Mar 2006
    Posts
    10

    Re: Roman Numeral Calculator

    anyone help me more then giving me code, and weird informtion!?

  21. #21
    PowerPoster
    Join Date
    Nov 2002
    Location
    Manila
    Posts
    7,629

    Re: Roman Numeral Calculator

    Quote Originally Posted by xtishx
    But I'm having problems trying to write the validation rules for:

    • making sure the numeral that is entered is in the correct order
    • the additive rule (explained above)
    My previous post was hasty so...

    As with any string manipulation routine, you will have to prepare your string to facilitate manipulation, eg. no spaces, UCase(), and so on. Use the validate event of the textbox. I used only one textbox in my tests.

    You will then have to parse the roman expression and place it in a structure to facilitate iteration through the operands and operators. I found inserting vbCrLf works.
    VB Code:
    1. Public Sub ExpressionToArray(ByVal Expression As String, RetArray() As String) As Long
    2.    ExpressionToArray = -1  'init value
    3.  
    4.    'It is assumed that spaces have already been eliminated
    5.    Expression = Replace(Expression, "+", vbCrLf & "+" & vbCrLf)
    6.    Expression = Replace(Expression, "-", vbCrLf & "-" & vbCrLf)
    7.    Expression = Replace(Expression, "*", vbCrLf & "*" & vbCrLf)
    8.    Expression = Replace(Expression, "/", vbCrLf & "/" & vbCrLf)
    9.  
    10.    'You can insert a check here
    11.    'If there is a leading or trailing vbCrLf, or there are two consecutive vbCrLf's
    12.    '   in the expression then you are lacking operands or have to many operators
    13.  
    14.    RetArray = Split(Expression, vbCrLf)
    15.    ExpressionToArray = 0
    16. End Sub
    17.  
    18. 'You can then iterate on the returned array, eg:
    19. '
    20. 'Dim sArray() As String
    21. '
    22. '   Call ExpressionToArray(txtInput.Text, sArray)
    23. '   For x=0 To Ubound(sArray)
    24. '      Select Case sArray(x)
    25. '      Case "+", "-", "*", "/"
    26. '         'do nothing, skip operators
    27. '      Case Else
    28. '         Call RomanToDecimal(sArray(x))  'pass the roman operand and update array value
    29. '      End Select
    30. '   Next
    31. '
    32. '   txtOutput.Text = EvaluateExpression(Join(sArray, ""))

    You can then do 3 levels of validation on each roman operand:
    - An initial check to screen out invalid characters (A, B, E...) and the more obvious errors such as IL or VV. This can easily be accomplished with InStr() > 0

    - Validity checks during the conversion into an expression based on places (thousands, hundreds, tens, and ones as mentioned in Rhino's link).

    - Rechecking the expression to make sure that the values progress from thousands place to ones correctly as I explained in an earlier post.

    Conversion based on digit place is a lot easier than nested conditional statements to process the string from left to right. You will also need a sub to count the number of instances of your roman character.

    VB Code:
    1. Public Function CharCount(RomanChar As String, Expression As String) As Long
    2. Dim sTemp As String
    3.  
    4.    sTemp = Replace(Expression, RomanChar, "")
    5.    CharCount = (Len(Expression) - Len(sTemp)) / Len(RomanChar)
    6. End Function
    7.  
    8. Public Function RomanToDecimal(ByRef RomanNum As String) As Long
    9. 'note that I passed by reference so I can update the value of RomanNum in the called procedure
    10.  
    11.    RomanToDecimal = -1
    12.  
    13.    If SimpleCheck(RomanNum)  <> ) Then error occured 'check for common errors and invalid letters
    14.    If ReplaceOnes(RomanNum) <> 0 Then error occured
    15.    If ReplaceTens(RomanNum) <> 0 Then error occured
    16.    If ReplaceHundreds(RomanNum) <> 0 Then error occured
    17.    If ReplaceThousands(RomanNum) <> 0 Then error occured
    18.    'you will need to correct the leading + sign in the final expression
    19.  
    20.    If PlacesCheck(RomanNum) <> 0 Then error occured
    21.    'You will reuse ExpressionToArray() in placescheck() to
    22.    'get an array to check by iteration to ensure that
    23.    'the decimal values progress in order from thousands to ones
    24.  
    25.    romanNum = EvaluateExpression(RomanNum) & ""
    26.  
    27.    RomanToDecimal = 0  'completed successfully
    28. End Function
    29.  
    30.  
    31. 'Pseudocode for ones place, do the same for the other places
    32. ' note validity checks during conversion
    33. Public Function ReplaceOnes(ByRef Expression As String) As Long
    34. Dim IVcount As Long
    35. Dim IXcount As Long
    36.  
    37.    ReplaceOnes = -1
    38.    IVcount = CharCount("IV", Expression)
    39.    IXcount = CharCount("IX", Expression)
    40.  
    41.    If IVcount > 0 and IXcount > 0 Then
    42.       'error, IX and IV cannot exist at the same time    
    43.    ElseIf IVcount > 1 Then
    44.       'error, only one IV in a number
    45.    ElseIf IXcount > 1
    46.       'error only one instance of IX is valid
    47.    ElseIf IVcount = 1  
    48.       'notice no need to check IXcount = 0,
    49.       'it is implied cause first case already handles IVcount > 0 and IXcount > 0
    50.       Expression = Replace(Expression, "IV", "+4")
    51.       If CharCount("I", Expression) > 0 Or CharCount("V", Expression) > 0 Then
    52.          'error, I's or V exist when IV already used
    53.       End If
    54.    ElseIf IXcount = 1
    55.       'almost same format as IVcount = 1, test I's and X
    56.    ElseIf IVcount = 0 and IXcount = 0
    57.       If CharCount("V", Expression) > 1 Then
    58.          'error, only one V is valid
    59.       Else
    60.          Expression = Replace(Expression, "V", "+5")
    61.       End If
    62.  
    63.       If CharCount("I", Expression) > 3 Then
    64.          'error, only up to 3 I's valid
    65.       Else
    66.          Expression = Replace(Expression, "I", "+1")
    67.       End If
    68.    End If
    69.  
    70.    ReplaceOnes = 0 'completed with no errors
    71. End Sub
    72.  
    73. Public Function EvaluateExporession()
    74. Dim oSCRCNT As New ScriptControl
    75.  
    76.    'sorry have to go... but this will have only about 3 to 5 lines
    77.    'anyone for the save??
    78. End Function

    And I mentioned the script control and the eval method. Thread starter, this is what you will use to perform arithmetic operations on your roman numerals.

    You enter an expression: "X + VII"
    You get an expression array and call romantodecimal:
    Array("10","+","5 + 1 + 1") --> Array("10","+", "7") after romantodecimal call
    RomanToDecimal also performs the Eval method of the script control to get the result of 5+1+1 = 7
    You then perform another Eval on the final expression "10+7"

    You will need to set the project reference of the script control
    You will need to create a new instance of the object in EvaluateExpression()
    you will need to set the lagnuage property of the object to "vbscript"
    Then finally call the Eval method and get the result of your arithmetic expression.
    Last edited by leinad31; Mar 25th, 2006 at 02:37 AM.

  22. #22
    New Member
    Join Date
    Mar 2006
    Posts
    1

    Exclamation Re: Roman Numeral Calculator

    This should be useful.

    This is AS level Computing Coursework. The Course specifically states:

    Quote Originally Posted by OCR Structured Practical Computing Tasks
    The work which you submit for assessment must be your own.

    If you copy from someone else or allow another candidate to copy from you, or if you cheat in
    any other way, you may be disqualified from at least the subject concerned.
    I am in the same boat as you, I had to to (and have already finished) this same coursework; go ask the one person you're allowed to: your teacher.
    Last edited by savara; Mar 26th, 2006 at 07:48 AM.

  23. #23
    New Member
    Join Date
    Mar 2006
    Posts
    10

    Re: Roman Numeral Calculator

    Still confused,

    Thanks for all your help with it,

    I have code, just need to assign the code to a button, if ya get wot i mena

  24. #24
    Frenzied Member litlewiki's Avatar
    Join Date
    Dec 2005
    Location
    Zeta Reticuli Distro:Ubuntu Fiesty
    Posts
    1,162

    Talking Re: Roman Numeral Calculator

    Quote Originally Posted by BruceG
    I have sample code on my site that may assist you.
    On this page:
    http://www.thevbprogrammer.com/tutorials.html
    Under "8. Control Basics", see the Programming Exercise for Roman Numerals.
    hey bruce any concessions for vbforums members.why dont u send me a copy of that ebook free of cost
    __________________
    ________________0îîî___
    ___îîî0________(___)____
    __(___)_________) _/_____
    ___\_ (_________(_/______
    ____\_)_________________

  25. #25
    New Member
    Join Date
    Mar 2006
    Posts
    10

    Re: Roman Numeral Calculator

    im still no further on with it

  26. #26
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Roman Numeral Calculator

    Quote Originally Posted by superleeds27
    im still no further on with it
    What is the current stumbling block?

  27. #27
    New Member
    Join Date
    Mar 2006
    Posts
    10

    Re: Roman Numeral Calculator

    well, i have my design and the boxes labelled

    I just have no idea what to do in Vb, no idea of code or anything

  28. #28
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Roman Numeral Calculator

    Quote Originally Posted by superleeds27
    well, i have my design and the boxes labelled

    I just have no idea what to do in Vb, no idea of code or anything
    No code

    There is a whole thread full of code here.

  29. #29
    New Member
    Join Date
    Mar 2006
    Posts
    10

    Re: Roman Numeral Calculator

    yer no idea where to put it, or anything, totally new to VB

  30. #30
    New Member
    Join Date
    Mar 2006
    Posts
    12

    Re: Roman Numeral Calculator

    @superleeds27 : try to ask xtishx (Thread Starter) if both of u are taking the same course. Ask him/her, how to start VB, design the form and how to put the code. Then try to read this thread form the begining. Becouse we don't know in which level of VB's Programmer u are.

    - jude7 -

    NB: Have u done a "Hello World" project ?
    Jazz...VB...Inter-Milan

  31. #31
    PowerPoster
    Join Date
    Nov 2002
    Location
    Manila
    Posts
    7,629

    Re: Roman Numeral Calculator

    Superleeds,

    If what your doing is based on my code then in the code I posted, the one place in the command button's click event is...
    BTW, Its in pseudocode
    VB Code:
    1. 'You can then iterate on the returned array, eg:
    2. '
    3. 'Dim sArray() As String
    4. '
    5. '   Call ExpressionToArray(txtInput.Text, sArray)
    6. '   For x=0 To Ubound(sArray)
    7. '      Select Case sArray(x)
    8. '      Case "+", "-", "*", "/"
    9. '         'do nothing, skip operators
    10. '      Case Else
    11. '         Call RomanToDecimal(sArray(x))  'pass the roman operand and update array value
    12. '      End Select
    13. '   Next
    14. '
    15. '   txtOutput.Text = EvaluateExpression(Join(sArray, ""))

    Note:

    1) The textbox.text value is parsed (string manipulation) with ExpressionToArray() to isolate the operands (or the roman numerals as strings) as a member of an array

    2) You then iterate through the array/operands (skipping the operators) and replacing each roman numeral string with its equivalent decimal value.

    3) The modified array (decimal operands) is then converted into a single string expression through Join()

    4) This 'concatenated' expression is then passed to the Eval method of the script control and the result (a decimal) is shown in another textbox.


    I used the script control approach due to the thread starters other requirements as I quoted in my previous post. Code I left out are SimpleCheck(), PlacesCheck() and the convertion for the tens, hundreds and thousands place. I had assumed the thread starter could build up on the concept and do the other code himself.
    Last edited by leinad31; Apr 13th, 2006 at 06:05 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width