fbpx

how to type (using Type method) time into txtbox

how to type (using Type method) time into txtbox

Home Forums Ask Expert how to type (using Type method) time into txtbox

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #31171
    Andrew Chan
    Participant

      I am trying to type the current time (which gets returned using the Time function) to use as param to the Type method like this:
      Application(“OpenCaseHome”).View(“OpenCaseHomeView”).Object(“Case Description:”).Object(“someobject”).Type Time

      I have also tried putting the Time into a var first:
      currentTime=Time
      Application(“OpenCaseHome”).View(“OpenCaseHomeView”).Object(“Case Description:”).Object(“someobject”).Type currentTime

      Both of which will complain about syntax as I am not passing text as param to the Type method. Any idea/workaround?
      Thanks!

      #31172
      Kirill Bulatnikov
      Participant

        Hello
        You can use simple concatenation with empty string – “”. It will looks like
        Application(“OpenCaseHome”).View(“OpenCaseHomeView”).Object(“Case Description:”).Object(“someobject”).Type “”&Time

        Thanks,
        ZAPTEST Team

        #31173
        Kirill Bulatnikov
        Participant

          ps. to use variable you need to convert Time/Date information to string (CStr function)

          #31174
          Andrew Chan
          Participant

            works great! Thanks!

          Viewing 4 posts - 1 through 4 (of 4 total)
          • You must be logged in to reply to this topic.

          Virtual Expert

          ZAPTEST

          ZAPTEST Logo