Forum Discussion
hantrung_truong
13 years agoOccasional Contributor
Thanks all.
As I understand the problem deeper, it is resolved now. What I was facing is that I tried to convert a mapped name to a string using CStr and it is impossible.
Example:
'---Don't care if the object exists or not, just log the mapped aliases as a string
'---I wanted to see a string "Aliases.pageLogin.txt_Username" in the log
Log.Message(CStr(Aliases.pageLogin.txt_Username))
'--Now, I have to make it as Tanya suggested, but this is only for the existed objects.
Log.Message(Aliases.pageLogin.txt_Username.MappedName)
Actually, it would be great if the script with CStr works.
Thanks.
As I understand the problem deeper, it is resolved now. What I was facing is that I tried to convert a mapped name to a string using CStr and it is impossible.
Example:
'---Don't care if the object exists or not, just log the mapped aliases as a string
'---I wanted to see a string "Aliases.pageLogin.txt_Username" in the log
Log.Message(CStr(Aliases.pageLogin.txt_Username))
'--Now, I have to make it as Tanya suggested, but this is only for the existed objects.
Log.Message(Aliases.pageLogin.txt_Username.MappedName)
Actually, it would be great if the script with CStr works.
Thanks.