Results 1 to 3 of 3

Thread: [RESOLVED] backslash

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2006
    Location
    Philippines
    Posts
    246

    Resolved [RESOLVED] backslash

    a simple question...

    [Highlight=VB]
    y = Mid(Text1.Text, (Len(Text1.Text) \ 2), 3)
    [/vbocode]

    what does the \ 2 means?

    thanks

  2. #2
    Fanatic Member vbasicgirl's Avatar
    Join Date
    Jan 2004
    Location
    Manchester, UK
    Posts
    1,016

    Re: backslash

    It means divide by 2 but because it uses the backslash it means its using integer division so the return would have no decimal places

    9 / 2 = 4.5
    9 \ 2 = 4


    casey.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Aug 2006
    Location
    Philippines
    Posts
    246

    Re: backslash

    thanks...

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