adding text to equations

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nickcarswell
    New Member
    • Sep 2006
    • 2

    #1

    adding text to equations

    I have an equation in VB6 all i want to do is make the answer display
    £(result) rather than just (result)

    Nick
  • sashi
    Recognized Expert Top Contributor
    • Jun 2006
    • 1749

    #2
    Hi Nick,

    kindly refer to the below sample code segment, hope it helps you to get started with.

    Code:
      Dim nResult, nNumber as Integer
      
      nNumber = 2
    
      nResult = nNumber + nNumber
      
      Msgbox Chr(163) & nResult
    p.s/ Chr(163) is the keyascii character code for the symbol "£"

    Originally posted by nickcarswell
    I have an equation in VB6 all i want to do is make the answer display
    £(result) rather than just (result)

    Nick

    Comment

    • nickcarswell
      New Member
      • Sep 2006
      • 2

      #3
      txtTotalRevenue = "£" & TotalRevenue

      Ive sorted it. Thanks for the help

      Comment

      Working...