01-13-2008, 11:13 PM
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:
"
"
This code will display two message boxes; first one with text "Name is : Rupesh Mishra" and second one "Parameter DOB not defined"
Thanks
Rupesh
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