Results 1 to 7 of 7

Thread: Most usefull/useless function??!!

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2000
    Posts
    240

    Talking

    Hello everyone...what would be the most usefull/useless function you have encountered?

    Am curios












  2. #2
    Hyperactive Member
    Join Date
    May 2000
    Posts
    344

    Unhappy Hrmmm.

    Most usefull function would have to be Stayontop, the most useless function would have to be, damn hehe i really havnt found anything useless everything has a meaning behind it. I would have to say the most useless function was something I created. lol, a function that closed 1 through 10 just in case they where open, since my program dealed a lot with opening and closing files. There is so many other better ways to go about it. ;oP
    -RaY
    VB .Net 2010 (Ultimate)

  3. #3
    Fanatic Member
    Join Date
    Jul 2000
    Location
    Manchester NH
    Posts
    833
    the Replace function was a great addition to VB 6
    Kurt Simons
    [I know I'm a hack but my clients don't!]

  4. #4
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    Either Int or Fix is the most useless function, because they both do exactly the same thing.

  5. #5
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827
    Fix() truncates, Int() rounds down. Pathetic difference I know, but I'm a petty person
    Harry.

    "From one thing, know ten thousand things."

  6. #6
    Hyperactive Member Al Smith's Avatar
    Join Date
    May 1999
    Location
    Marcellus, MI. USA
    Posts
    330

    Int vs Fix

    Hi.

    I have found no use for Imp or Eqv.

    Also on Int vs Fix:

    Remarks

    Both Int and Fix remove the fractional part of number and return the resulting integer value.

    The difference between Int and Fix is that if number is negative, Int returns the first negative integer less than or equal to number, whereas Fix returns the first negative integer greater than or equal to number. For example, Int converts -8.4 to -9, and Fix converts -8.4 to -8.

    Fix(number) is equivalent to:

    Sgn(number) * Int(Abs(number))
    A computer is a tool, not a toy.

  7. #7
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Imp and Eqv are both operators not functions, and i have had use of both of them. Most usefull function must be Int() and most useless could be IsError.

    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

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