Hello Guest it is April 16, 2024, 03:19:02 PM

Author Topic: Question regarding GetParam( String ) and SetParam( String )  (Read 6251 times)

0 Members and 1 Guest are viewing this topic.

Question regarding GetParam( String ) and SetParam( String )
« on: April 13, 2011, 01:44:35 PM »
Could one of you fine folks help me retrieve a parameter from Mach, and store it in a text box on the Flash screen?
Hope that makes sense?

Thanks guys,
Chris

Offline zealous

*
  •  489 489
  • HI!
    • View Profile
    • Artsoft Solutions
Re: Question regarding GetParam( String ) and SetParam( String )
« Reply #1 on: April 25, 2011, 10:36:52 PM »
Sorry for the delay, I did not see the post.

you can call a VB command to either set a Userlabel,LED,DRO OR write to a text file which Flash then could load.

I.E.

Code: [Select]
loadSettings =
'value = GetParam("Boundry")'+"\r"+
'if  value = 1 then'+"\r"+
'SetUserLED(1816,1)'+"\r"+
'else'+"\r"+
'SetUserLED(1816,0)'+"\r"+
'end if'
fscommand("VBMacro", loadSettings);

Let me know if you want to read a file in Flash will give an example.
Re: Question regarding GetParam( String ) and SetParam( String )
« Reply #2 on: April 26, 2011, 01:46:55 AM »
Hey cool zealous, I think that's what I was after. May take me a bit to try it out...way too many projects right now  ;). I'll keep you posted.
Thanks again,
Chris