Error in Code - InfoPath Dev
in

InfoPath Dev

Error in Code

Last post 01-17-2006 06:09 AM by lisaspencer. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 01-16-2006 01:00 PM

    Error in Code

    What's wrong with this code?

    function XDocument::OnLoad(eventObj)
    {
    If XDocument.IsNew Then
    Dim TicketNumber, HiddenText
    TicketNumber = Sum(HiddenText) + 1
    End If
    }

    Error in Script.js expected ';' in Line 26(which is the If line).
    Thanks!




    Lisa Spencer
    Programmer/Office Specialist
  • 01-17-2006 12:08 AM In reply to

    • sandeep
    • Not Ranked
    • Joined on 11-16-2005
    • India
    • Posts 7
    Hi lisaspencer,

    I think u wrote code in "VBscript" but you are working in "java script" programming mode.



    Sandeep
    InfoPath Dev India
  • 01-17-2006 06:09 AM In reply to

    You're right. I figured it out shortly after I posted! Thanks!

    Lisa Spencer
    Programmer/Office Specialist
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.