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
putting variables into VB Script
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: putting variables into VB Script
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
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