Alpha Video Training
Page 2 of 2 FirstFirst 12
Results 31 to 32 of 32

Thread: A survey on ALLTRIM as a Pain in the neck

  1. #31
    "Certified" Alphaholic
    Real Name
    Cal Locklin
    Join Date
    Mar 2000
    Location
    S.E. Michigan
    Posts
    5,763

    Default Re: A survey on ALLTRIM as a Pain in the neck

    Which brings up a good point - although a bit of a digression.

    Both ltrim() and alltrim() are both VERY fast. And, there is no discernible speed difference between ltrim() and alltrim(). I don't hesitate to either use these functions if there is ANY doubt at all about whether or not trimming is needed - even in a very long loop.

  2. #32
    Member SMARTII's Avatar
    Real Name
    TOM MCCANN
    Join Date
    Jul 2007
    Location
    Grand Prairie TX
    Posts
    197

    Default Re: A survey on ALLTRIM as a Pain in the neck

    On an AMD quad C:
    <B>
    PHP Code:
    V9
    result 
    "" 44          1.329
    result 
    ltrim(str(44))   1.203    9.48better.
    result str(44,2)        1.187  10.6better
    V10
    result 
    "" 44          1.640
    result 
    ltrim(str(44))  1.453 11.4better.
    result str(44,2)        1.563 4.7better 

    Also found there is essentially no time difference bet.:
    alltrim(str(44))
    and
    ltrim(str(44))
    Last edited by SMARTII; 11-21-2009 at 03:39 PM.

Similar Threads

  1. alltrim in function help
    By Pat Bremkamp in forum Alpha Five Version 8
    Replies: 10
    Last Post: 05-16-2007, 09:58 AM
  2. Alltrim in V8
    By mfletcher1 in forum Alpha Five Version 8
    Replies: 31
    Last Post: 03-06-2007, 09:57 PM
  3. ALLTRIM
    By Ed Barley in forum Alpha Five Version 5
    Replies: 2
    Last Post: 09-30-2004, 12:01 PM
  4. Product activation a pain in the ....
    By Graham Howell in forum Alpha Five Version 5
    Replies: 2
    Last Post: 02-16-2004, 05:36 PM
  5. alltrim question
    By Jeff, Richards in forum Alpha Five Version 5
    Replies: 8
    Last Post: 12-30-2003, 04:30 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •