Convet Basic Evaluate to VB Evaluate

Discuss RoboTask here
Post Reply
Chris1225
Posts: 5
Joined: Thu Apr 21, 2022 8:50 am

Convet Basic Evaluate to VB Evaluate

Post 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
Oleg
Site Admin
Posts: 3000
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: Convet Basic Evaluate to VB Evaluate

Post 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
Oleg Yershov
Chris1225
Posts: 5
Joined: Thu Apr 21, 2022 8:50 am

Re: Convet Basic Evaluate to VB Evaluate

Post by Chris1225 »

Perfect thanks ;-)
Post Reply