Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Storing dynamic data at run time
#3
Solved: 11 Years, 4 Months ago
Thanks Ankur, that was quite helpful.

For others who look at this thread, here is the code that I am using to add environment variables at run time to define the data at run time. Ankur if you a have easy way of doing this, please post.

code goes like this:
"
Code:
'Define data
On error resume next
temp_val = environment.Value("FName")
If err.number <> 0 Then
    environment.Value("FName") = "Rupesh"
End If

On error resume next
temp_val = environment.Value("LName")
If err.number <> 0 Then
    environment.Value("LName") = "Mishra"
End If

'Display recently define data
On error resume next
MsgBox "Name is : "  & environment.Value("FName") & " " & environment.Value("LName")
If err.number <> 0 Then
    MsgBox "Parameter FName not defined"
End If

On error resume next
MsgBox "Date of Birth : " & environment.Value("DOB")
If err.number <> 0 Then
    MsgBox "Parameter DOB not defined"
End If

"

This code will display two message boxes; first one with text "Name is : Rupesh Mishra" and second one "Parameter DOB not defined"

Thanks
Rupesh
Reply


Messages In This Thread
Storing dynamic data at run time - by Rupesh - 01-12-2008, 08:41 AM
RE: Storing dynamic data at run time - by Ankur - 01-12-2008, 11:34 AM
RE: Storing dynamic data at run time - by Rupesh - 01-13-2008, 11:13 PM
RE: Storing dynamic data at run time - by Rupesh - 01-15-2008, 07:32 AM
RE: Storing dynamic data at run time - by Ankur - 01-16-2008, 11:22 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  QTP not recogonising object during run time Lavanya N 2 3,727 10-28-2015, 12:46 PM
Last Post: vinod123
  Writing to Run time data table Neetha 5 12,175 08-27-2015, 10:18 AM
Last Post: supputuri
  Webtable Checkpoint to get cell data from dynamic WbfGrid Neetha 1 3,480 08-20-2015, 11:43 PM
Last Post: ADITI1992
  How to Export run result viewer with CAPTURED DATA and save it in PDF,or Doc,or HTML akhandesh 0 2,958 07-16-2015, 06:03 PM
Last Post: akhandesh
  Storing runtime value into datasheet priyaUFTlearner 4 3,435 04-10-2015, 10:08 PM
Last Post: priyaUFTlearner

Forum Jump:


Users browsing this thread: 3 Guest(s)