Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scripting - ExecScript #1682

Open
ecosSystem opened this issue Jan 31, 2025 · 0 comments
Open

Scripting - ExecScript #1682

ecosSystem opened this issue Jan 31, 2025 · 0 comments

Comments

@ecosSystem
Copy link

So far I detected 7 problems running a script via execscript:

1. parameters - only 3 parameters are recognized
parameters a,b,c,d,e,f,g,h
a,b,c //=> ok
d,e,f,g,h //=> NIL
return 0

2. IF CLAUSE - elseif does not work:

local x
x := DoSomething()
if x > 100
	x := 100
else
	x := 10
endif

=>ok

local x
x := DoSomething()
if x > 100
	x := 100
elseif x > 50
	x := 50
else
	x := 10
endif

=> Macrocompiler: error XM0100: Expected 'END IF'

3. DO CASE - do case statement without otherwise does not work:

local x
x := DoSomething()
do case
case x > 100
	x := 100
otherwise
	x := 10
endcase

=> ok

local x
x := DoSomething()
do case
case x > 100
	x := 100
endcase

=> Der Objektverweis wurde nicht auf eine Objectinstanz festgelegt

4. SWITCH - switch does not work at all
=> Macrocompiler: error XM0100: Expected 'EOS'

5. FOR NEXT - not a bug, only a flaw
if you type "next n":

for n := 1 upto 10
	DoSomething()
next n

=> Macrocompiler: error XM0100: Expected 'EOS'

6. Default-function

parameters a
default(@a,5)

=> Macrocompiler: error XM0100: Expected 'type'

7. PROCNAME() - not a bug, only a flaw
procname(1) gives the whole Script in capitals
Maybe "[SCRIPT]" or something else might make more sense.
Perhaps even a scriptname (in the first line of the script, e. g. "method testscript")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants