Results 1 to 7 of 7

Thread: trim function (resolved)

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2004
    Posts
    908

    trim function (resolved)

    does anyone knows what Trim(!Deleted & "") means ? what is this Deleted and ! and so on ..i only knows Trim(string)

    thanks
    Last edited by Goh; Jun 30th, 2005 at 02:30 AM.

  2. #2
    PowerPoster lintz's Avatar
    Join Date
    Mar 2003
    Location
    The 19th Hole
    Posts
    2,697

    Re: trim function

    It seems you (or whoever's code it is ) has opened a recordest and is triming the field called Delete.

    eg..
    VB Code:
    1. 'open Recordset
    2.  
    3. With myRecordset
    4.  
    5. MyValue = Trim(!Delete)
    6.  
    7. End With
    Last edited by lintz; Jun 30th, 2005 at 01:12 AM.

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2004
    Posts
    908

    Re: trim function

    and what about &"" ?

    the actual coding is flex1.TextMatrix(flex1.Rows - 1, 0) = Trim(!Deleted & "")


    and why is there an ! ?

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: trim function

    Why is this in the ASP.NET forum as well?

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2004
    Posts
    908

    Re: trim function

    oppos sorrie i post it wrong accidentally

  6. #6
    old fart Frans C's Avatar
    Join Date
    Oct 1999
    Location
    the Netherlands
    Posts
    2,926

    Re: trim function

    The & "" part is to prevent an error when the value in the database is null.
    Because Null & "" = "" no invalid use of null error is thrown.
    Frans

  7. #7

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2004
    Posts
    908

    Re: trim function

    i see 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