PennController for IBEX › Forums › Support › Convert Var/Text to String for get-method › Reply To: Convert Var/Text to String for get-method
May 10, 2023 at 6:45 am
#10548
![](https://www.pcibex.net/wp-content/uploads/2018/10/IMG_8365-e1540835663655-150x150.jpg)
Keymaster
There is no javascript function called setVar
. What you can do is:
getButton("B1") .callback( newFunction( ()=>{ try { getCanvas( getVar("canvasnr")._element.value ).visible()._runPromises(); } catch (e) { } }).call() , getVar("canvasnr").set("C3") )
Jeremy