Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2005

    Unanswered: Making 1 sting out of a string and an int

    This is probably pretty easy, but I am new to VB. I also tried searching for it, but wasn't sure what this process was called.

    I want take a string and attach an int to the the end of it.

    for example

    Dim text As String
    Dim number As Integer

    How do I make a string that consists of "textnumber".


  2. #2
    Join Date
    May 2004
    You're looking for type conversion functions. See the Command Reference for Function CStr

    NewText = text & CStr(number)

  3. #3
    Join Date
    Jan 2005
    U need not even convert in to a string

    u can just do it like this

    newText = Text & number

Posting Permissions

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