Skip to main content

Search

Search

"object Required" Error

Comments

3 comments

  • Avatar
    Ian Cummings
    Moderator
    Isn't "ID" supposed to be a string variable? Therefore, wouldn't just ID = Field("BARCODE", "0") do the trick?
    0
  • Avatar
    Legacy Poster
    [quote name='Ian C - Seagull Support' timestamp='1359737851' post='4286']
    Isn't "ID" supposed to be a string variable? Therefore, wouldn't just ID = Field("BARCODE", "0") do the trick?
    [/quote]

    Hello =)
    yeah yeah, you're right, it suppose to, I tried delcaring on this way, i.e:
    [quote]Dim ID As String
    ID = Field("BARCODE", "0")[/quote]

    But I got this message instead: [quote]Dim ID As String: Expected end of statement[/quote]

    I don't catch the point what the problem is, certainly, it have to be something obvious I'm not seeing.
    0
  • Avatar
    Legacy Poster
    OMG <_< I was thinking on VB6 not on VBScript so I changed from "Dim ID As String" to just "Dim ID"
    this is embarrassing haha.

    Thanks a lot... Santos
    0

Please sign in to leave a comment.