Hello!.
I’m trying to convert the variant output from the Evaluate statment to a string and I keep getting type mismatch…
Can anyone help?
I tried:
get_path = | @RegQueryValue( “HKEY_LOCAL_MACHINE”; “Software\Lotus\Notes”; “DataPath”) |
set_path = Evaluate ( get_path )
Set item = set_path
file_path = item.Text
and
get_path = | @RegQueryValue( “HKEY_LOCAL_MACHINE”; “Software\Lotus\Notes”; “DataPath”) |
set_path = Evaluate ( get_path )
final_path = cStr(set_path)
Thank you.
Brett
Subject: RE: converting variant from evaluat to a string
The value is an array. Use set_path(0)
Why are you using the registry instead of the Directory environment variable?
Subject: RE: converting variant from evaluat to a string
Hi Andre…
I have tried exact that as well…
file_path = set_path(0) also fails…
I totally forgot about the enviroment string… Since that saves as type string… that should work…
I’ll post back when I test…
Thanks…
Subject: RE: converting variant from evaluat to a string
that was it… thank you.
set_path = s.GetEnvironmentString (“Directory”, 1)
file_path = set_path & "" & “Sig.htm”