[Frage] Options code smartpart


Goodmorning,

does anyone know the code to do the two options ....
1) if I make "a" true then "b" change in false
2) if I make "b" true then "a" change in false

Thank you for help. Goodbye.

Anhänge (1)

Typ: image/jpeg
25-mal heruntergeladen
Größe: 478,22 KiB

You have to recognize the changings of the parameters "a" and "b":

In Parameter script:

IF GLOB_MODPARAM_NAME = "a" THEN
If a#0 THEN
b=0
PARAMETERS b=b
ENDIF
ENDIF
IF GLOB_MODPARAM_NAME = "b" THEN
If b#0 THEN
a=0
PARAMETERS a=a
ENDIF
ENDIF

With Variables "a" and "b" you can only set the association with:
b = NOT a
or
a = NOT b

Therefore you need a "leading" variable, and a "dependend" variable!

Zitiert von: Nemo
You have to recognize the changings of the parameters "a" and "b":
In Parameter script:
IF GLOB_MODPARAM_NAME = "a" THEN
If a#0 THEN b=0
PARAMETERS b=b
ENDIF

ENDIF

IF GLOB_MODPARAM_NAME = "b" THEN
If b#0 THEN a=0
PARAMETERS a=a
ENDIF

ENDIF
With Variables "a" and "b" you can only set the association with:

b = NOT a

or

a = NOT b
Therefore you need a "leading" variable, and a "dependend" variable!

Hi Nemo, your code it's very good...as always . Thank you for help! Goodbye.