Results 1 to 2 of 2

Thread: Speed Tips - A place to post variations of code that you notice work faster!

  1. #1

    Thread Starter
    Fanatic Member ExtremePimpness's Avatar
    Join Date
    Jan 2001
    Location
    Indianapolis, Indana - USA
    Posts
    550

    Post

    Ok I started this post because i am always seeing that people are clowning on people for using code that eats up processor power so now there is a place to list all of the faster vairiations of coding so that it is less confusing.

    Example of how to post variations:

    This Code is for making a if statement:
    Fast:
    Code:
    If x = y then 
    ...
    else
    ...
    endif
    Slow:
    Code:
    iif(x = y, ...(TRUE ARGUMENTS)..., ...(FALSE ARGUMENTS)...)

  2. #2
    Frenzied Member
    Join Date
    Sep 1999
    Location
    Phoenix, az
    Posts
    1,517

    If... Then.

    Fast:
    Code:
    If variable = "1" Then
    ElseIf variable = "2" Then
    ElseIf variable = "3" Then
    End If
    Slow:
    Code:
    Select case variable
    case "1"
    case "2"
    case "3"
    end select
    Sad huh? I liked select cases.

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