ich möchte Funktionen ohne Eingabeparameter erstellen, winst lässt dies jedoch nicht zu, ist dieses verhalten gewollt?
Code: Alles auswählen
[Actions]
SetLoglevel=9
DefVar $Test$
DefFunc GetNumber : String
Set $Result$ = "1"
EndFunc
Set $Test$ = GetNumber
Code: Alles auswählen
[8] [Apr 04 09:08:08:977] Found new defined function name: getnumber
[2] [Apr 04 09:08:08:979] Syntax Error in Section: Actions (Command in line 3 origin: C:\tmp\test.opsiscript line: 4): DefFunc -> "(" expected ( expected
Code: Alles auswählen
[Actions]
SetLoglevel=9
DefVar $Test$
DefFunc GetNumber () : String
Set $Result$ = "1"
EndFunc
Set $Test$ = GetNumber
Code: Alles auswählen
[8] [Apr 04 09:08:31:541] Found new defined function name: getnumber
[8] [Apr 04 09:08:31:542] Found defined function parametername: )
[8] [Apr 04 09:08:31:544] Parameter has call type: val
[8] [Apr 04 09:08:31:546] Parameter has invalid data type: string
[2] [Apr 04 09:08:31:547] Syntax Error in Section: Actions (Command in line 3 origin: C:\tmp\test.opsiscript line: 4): DefFunc -> , or ) expected after Parameter Type