2 Replies Latest reply on Jan 31, 2011 5:30 PM by DevBiker

    VB.NET passing a timestamp to the UpdateValue command

    DevBiker

      Happy Friday!

       

      I'm working on writing a zero to a simulator tag using the line:

       
      pt.Data.UpdateValue(0, Now(), PISDK.DataMergeConstants.dmInsertDuplicates, Nothing)
      

      It works, but I'm having trouble figuring out how to get a different time rather than Now().

       

      I tried the following lines of code and passed piTime to the UpdateValue command:

       
      Dim piTime As New PITimeServer.PITime
      piTime.LocalDate = TextBox4.Text
      

      Even though it Builds OK, the TextBox4 date that I entered appears in the "piTime" Watch in red and the tag doesnt get updated.  Looking around in the pisdk chum file, I see a reference to PITimeFormat, but not sure if this is the problem.

       

      Any help would be appreciated!