Results 1 to 4 of 4

Thread: String2Integer

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2000
    Posts
    55
    how to put a number in a string into an integer?

    st as string
    int as integer

    st="205"

    how to put st in int?

  2. #2
    Addicted Member
    Join Date
    Jun 1999
    Location
    Los Angeles
    Posts
    186
    Use the Cint function, that is
    st=Cint(st)

    André

  3. #3

    Thread Starter
    Member
    Join Date
    Jun 2000
    Posts
    55

    Unhappy

    your answer does the oppiste of what i meant

  4. #4
    Addicted Member
    Join Date
    Jun 1999
    Location
    Los Angeles
    Posts
    186
    Then use the Cstr function

    st=Cstr(st)

    Your formulation was not as clear to me, sorry.

    Hope this works

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