Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pass variables to functions as arguments
#9
change function main to this

Function Main
Code:
Copy      Help
;;text input here
str controls = "9"
str e9
str s
if(!ShowDialog("Function9" &Function9 &controls)) ret
type MyVARIABLES str'idcode
MyVARIABLES x; x.idcode=e9

str controls2 = "3"
str c3Sta
int retVal=ShowDialog("Function7" &Function7 &controls2 0 0 0 0 &x)
if retVal=1
,goto text input here
 
and in Function7
change this
Code:
Copy      Help
,case IDOK
,mac "UI"
,shutdown -6 0 "Macro8"
to this
Code:
Copy      Help
,case IDOK
,shutdown -6 0 "Macro8"


Messages In This Thread
RE: Pass variables to functions as arguments - by Kevin - 05-28-2021, 06:04 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)