putting variables into VB Script

Deploying to Windows? Utilizing VB Script execution? This is the place to ask Windows-specific questions.

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
ChrisM
Posts: 24
Joined: Sat Mar 29, 2014 3:11 pm

putting variables into VB Script

Post by ChrisM » Sun Feb 22, 2015 4:43 pm

Hi,

I have a button that I want to use to run a VB Script, but I need to pass 2 pieces of information from livecode into it, I have these strings:-

strUser="11111111"
strPass="22222222"

and need to find a way to put the vbscript into it, then get it to amend these numbers with details from variables entered into livecode, then I want it to run the script

Any help would be appreciated

SparkOut
Posts: 2412
Joined: Sun Sep 23, 2007 4:58 pm

Re: putting variables into VB Script

Post by SparkOut » Sun Feb 22, 2015 8:20 pm

http://forums.runrev.com/viewtopic.php?p=35695#p35695

I think you have seen this thread before ;)
It still applies. Basically you can store the vbscript as (say) a custom property. In the script you can have placeholders for the dynamic content. Then you can put the custom property into a variable, replace the placeholder with your dynamic value, then do <variablename> as vbscript

Post Reply

Return to “Windows”