Results 1 to 4 of 4

Thread: exclamation !

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Nov 2000
    Location
    Minneapolis
    Posts
    28
    I'm going through some code from an inhouse app that my company is running because I need to understand how it works. I understand the following section of code except for the exclamation points. Does anybody know what their purpose is?


    'Take the label name, append label type and look for label
    str3rdName = Trim(!Label_Type & frm3rdParty.txt3rdlblName & ".QDF")
    str3rdPartyFile = Trim(str3rdParty_FilePath & str3rdName)
    'Locate the 3rd Party Label in appropriate path
    If fso.FileExists(str3rdPartyFile) Then
    frmPrinting.Show
    frmPrinting.Refresh
    'Set the Baytech Port / Com Port and Delay
    strPortNo = !Printer_Port
    strProd_line = !Production_Line
    strPort_Name = !Port_Name
    Set_Printer_Port

  2. #2
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    I think it has something to do with 'collections' or something, I never use(d) them yet, hope I may use them soon, they look cool
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

  3. #3
    Fanatic Member
    Join Date
    Oct 2000
    Location
    London
    Posts
    1,008
    ! indicates a field within a collection as opposed to the . which indicates a method.

    Confusingly, you can't use ! in SQL to indicate fields of a table you have to use . ???

    Cheers,

    P.
    Not nearly so tired now...

    Haven't been around much so be gentle...

  4. #4
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    they are also used as shortcuts in referencing a field within a recordset

    With Rs
    .movenext
    !myfield = text1
    .close
    end with
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

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