Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Execute Python Code in QM Using python.net
#5
How should the args array be assigned when there is no function name and no parameters?
_______________________________________________________________
ARRAY(VARIANT) args.create
sel getopt(nargs)-2
    case 0 args[]=?????
    case 1 args[]=_A1
    case 2 args[]=_A1; args[]=_A2
    case 3 args[]=_A1; args[]=_A2; args[]=_A3
    case 4 args[]=_A1; args[]=_A2; args[]=_A3; args[]=_A4
    case 5 args[]=_A1; args[]=_A2; args[]=_A3; args[]=_A4; args[]=_A5

ret x.Call("py.pyCall" pyCode _Func args)
_______________________________________________________________
Code:
Copy      Help
str pyCode=
;print('print output')
mes pycall2(pyCode) ;;noFunc noArgs


Messages In This Thread
RE: Execute Python Code in QM Using python.net - by Davider - 06-08-2025, 09:15 AM
RE: First steps with Python.NET - by Davider - 06-09-2025, 03:30 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)