kimmatsumoto
7 years agoContributor
logging results of a persistent variable
Hello,
When i executed this:
log.checkpoint('This is the value displayed in the Sabre Profile ID field: '+ProjectSuite.Variables.CBOSabreID0);
I get the error: Could not convert variant of type (OleStr) into type (Double).
Attached is image of the persistent variable.
Could someone please advise me on what I'm doing wrong?
Thank you,
Kim
It's probably not liking that you're trying to append an integer to a string.
Try the following:
log.checkpoint('This is the value displayed in the Sabre Profile ID field: '+aqConvert.VarToStr(ProjectSuite.Variables.CBOSabreID0));
This will do an explicity conversion to a string before the append.