Results 1 to 2 of 2

Thread: Need Lists of meanings of String Functions(doesn't have MSDN CD) any websites?

  1. #1

    Thread Starter
    Registered User struntz's Avatar
    Join Date
    Aug 1999
    Location
    Brockway,Pa,USA
    Posts
    199

    Question

    Hello, i am in need to find a list of terms and what not for string functions for instance:
    I am reading this book and he doesn't even explain what this does and it really confuses me when i have to try and figure out what the heck he is talking about but like this:
    Code:
    Public Function Postage(Weight as Single) as Curency
    
    If Int(Weight) = Weight Then
       Postage = 0.32 + (0.23 * (Weight - 1))
    Else
       Postage = 0.32 + (0.23 * (Int(Weight)))
    End if
    ENd fucntion
    See i don't understand what just happened there can someone explain?
    and in other situations also, i don't understand what Int is doing or Str is doing or anyt of that, does anyone have any sites that list so i may learn them? Thanks for listening

    I'm gessing Int makes whatever is in weight a integer but i'm not quite sure

  2. #2
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    The MSDN Library is also online and can be searched at
    http://search.microsoft.com/us/dev/default.asp

    Int() returns the integer portion of an expression. If weight was 11.4 it would return 11 but if weight was 11 it would also return 11 and the If statement would be true.

    Str() is usefull for converting a numeric expression to a string, most usefull when outputing numeric data concatenated with string data.

    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

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