Page 1 of 1

Convet Basic Evaluate to VB Evaluate

Posted: Thu Apr 28, 2022 5:30 pm
by Chris1225
Hello

How can I do this in VB Evaluate ?

cstr("{V_NOM_BATCH}") & cstr("{V_PARAM_TRAIT}") & "_" & Format(Date, "yyyymmdd") & "_" & Format(Time, "HHmmss")&"_Log.txt"

It works fine in Basic Evaluate, but Basic Evaluate is not working on x64

Thanks in advance
Christophe

Re: Convet Basic Evaluate to VB Evaluate

Posted: Thu Apr 28, 2022 6:28 pm
by Oleg
Use this expression

Code: Select all

cstr("{V_NOM_BATCH}") & cstr("{V_PARAM_TRAIT}") & "_" & {DateTimeToFormat({Date},yyyymmdd)} & "_" & {DateTimeToFormat({Time},HHmmss)} &"_Log.txt"
VB Script has not function Format
You can use RoboTask's system variable DateTimeToFormat

Re: Convet Basic Evaluate to VB Evaluate

Posted: Fri Apr 29, 2022 10:52 am
by Chris1225
Perfect thanks ;-)