abbrechen
Suchergebnisse werden angezeigt für 
Stattdessen suchen nach 
Meintest du: 
abbrechen
Suchergebnisse werden angezeigt für 
Stattdessen suchen nach 
Meintest du: 
Programmierung
Alles über Programmierung in GDL und Python

Parameter-Skript in AC 11

Anonymous
Nicht anwendbar
Bekomme die Fehlermeldung:

"Numerische Variable erforderlich bei Zeile 4 im Parameter-Script der Datei MSH-Profil.gsm."


könnte schwören in AC 10 ging es...

hier mal das parameter-script:

values "pr" "quadratisch",
"rechteckig"

if pr="quadratisch" then
values "typ" "40 x 40",
"50 x 50",
"60 x 60",
"70 x 70",
"80 x 80",
"90 x 90",
"100 x 100",
"110 x 110",
"120 x 120",
"140 x 140",
"150 x 150",
"160 x 160",
"180 x 180",
"200 x 200",
"220 x 220",
"250 x 250",
"260 x 260"
endif

if pr="rechteckig" then
values "typ" "50 x 30",
"60 x 40",
"70 x 40",
"80 x 40",
"90 x 50",
"100 x 50",
"100 x 60",
"110 x 60",
"120 x 60",
"120 x 80",
"140 x 70",
"140 x 80",
"150 x 100",
"160 x 80",
"160 x 90",
"180 x 100",
"200 x 100",
"200 x 120",
"220 x 120",
"250 x 150",
"260 x 140",
"250 x 180",
"300 x 200"
endif

if typ="40 x 40" then
values "wd" "2.9",
"3.2",
"3.6",
"4.0",
"4.5",
"5.0",
"5.6",
"6.3",
"7.1"
endif

if typ="50 x 50" then
values "wd" "2.9",
"3.2",
"3.6",
"4.0",
"4.5",
"5.0",
"5.6",
"6.3",
"7.1",
"8.0"
endif

if typ="60 x 60" then
values "wd" "2.9",
"3.2",
"3.6",
"4.0",
"4.5",
"5.0",
"5.6",
"6.3",
"7.1",
"8.0"
endif

if typ="70 x 70" then
values "wd" "3.2",
"3.6",
"4.0",
"4.5",
"5.0",
"5.6",
"6.3",
"7.1",
"8.0",
"8.8",
"10.0",
"11.0",
"12.5"
endif

if typ="80 x 80" then
values "wd" "3.2",
"3.6",
"4.0",
"4.5",
"5.0",
"5.6",
"6.3",
"7.1",
"8.0",
"8.8",
"10.0",
"11.0",
"12.5"
endif

if typ="90 x 90" then
values "wd" "3.2",
"3.6",
"4.0",
"4.5",
"5.0",
"5.6",
"6.3",
"7.1",
"8.0",
"8.8",
"10.0",
"11.0",
"12.5"
endif

if typ="100 x 100" then
values "wd" "3.6",
"4.0",
"4.5",
"5.0",
"5.6",
"6.3",
"7.1",
"8.0",
"8.8",
"10.0",
"11.0",
"12.5"
endif

if typ="110 x 110" then
values "wd" "3.6",
"4.0",
"4.5",
"5.0",
"5.6",
"6.3",
"7.1",
"8.0",
"8.8",
"10.0",
"11.0",
"12.5"
endif

if typ="120 x 120" then
values "wd" "3.6",
"4.0",
"4.5",
"5.0",
"5.6",
"6.3",
"7.1",
"8.0",
"8.8",
"10.0",
"11.0",
"12.5"
endif

if typ="140 x 140" then
values "wd" "5.0",
"5.6",
"6.3",
"7.1",
"8.0",
"8.8",
"10.0",
"11.0",
"12.5",
"14.2",
"16.0"
endif

if typ="150 x 150" then
values "wd" "5.6",
"6.3",
"7.1",
"8.0",
"8.8",
"10.0",
"11.0",
"12.5",
"14.2",
"16.0"
endif

if typ="160 x 160" then
values "wd" "5.6",
"6.3",
"7.1",
"8.0",
"8.8",
"10.0",
"11.0",
"12.5",
"14.2",
"16.0"
endif

if typ="180 x 180" then
values "wd" "6.3",
"7.1",
"8.0",
"8.8",
"10.0",
"11.0",
"12.5",
"14.2",
"16.0"
endif

if typ="200 x 200" then
values "wd" "6.3",
"7.1",
"8.0",
"8.8",
"10.0",
"11.0",
"12.5",
"14.2",
"16.0"
endif

if typ="220 x 220" then
values "wd" "6.3",
"7.1",
"8.0",
"8.8",
"10.0",
"11.0",
"12.5",
"14.2",
"16.0"
endif

if typ="250 x 250" then
values "wd" "7.1",
"8.0",
"8.8",
"10.0",
"11.0",
"12.5",
"14.2",
"16.0"
endif

if typ="260 x 260" then
values "wd" "7.1",
"8.0",
"8.8",
"10.0",
"11.0",
"12.5",
"14.2",
"16.0",
"17.5"
endif

if typ="50 x 30" then
values "wd" "2.9",
"3.2",
"3.6",
"4.0",
"4.5",
"5.0",
"5.6",
"6.3",
"7.1"
endif

if typ="60 x 40" then
values "wd" "2.9",
"3.2",
"3.6",
"4.0",
"4.5",
"5.0",
"5.6",
"6.3",
"7.1",
"8.0"
endif

if typ="70 x 40" then
values "wd" "2.9",
"3.2",
"3.6",
"4.0",
"4.5",
"5.0",
"5.6",
"6.3",
"7.1",
"8.0"
endif

if typ="80 x 40" then
values "wd" "2.9",
"3.2",
"3.6",
"4.0",
"4.5",
"5.0",
"5.6",
"6.3",
"7.1",
"8.0"
endif

if typ="90 x 50" then
values "wd" "3.2",
"3.6",
"4.0",
"4.5",
"5.0",
"5.6",
"6.3",
"7.1",
"8.0",
"8.8",
"10.0",
"11.0",
"12.5"
endif

if typ="100 x 50" then
values "wd" "3.2",
"3.6",
"4.0",
"4.5",
"5.0",
"5.6",
"6.3",
"7.1",
"8.0",
"8.8",
"10.0",
"11.0",
"12.5"
endif

if typ="100 x 50" then
values "wd" "3.2",
"3.6",
"4.0",
"4.5",
"5.0",
"5.6",
"6.3",
"7.1",
"8.0",
"8.8",
"10.,0",
"11.0",
"12.5"
endif

if typ="100 x 60" then
values "wd" "3.2",
"3.6",
"4.0",
"4.5",
"5.0",
"5.6",
"6.3",
"7.1",
"8.0",
"8.8",
"10.0",
"11.0",
"12.5"
endif

if typ="110 x 60" then
values "wd" "3.2",
"3.6",
"4.0",
"4.5",
"5.0",
"5.6",
"6.3",
"7.1",
"8.0",
"8.8",
"10.0",
"11.0",
"12.5"
endif

if typ="120 x 60" then
values "wd" "3.2",
"3.6",
"4.0",
"4.5",
"5.0",
"5.6",
"6.3",
"7.1",
"8.0",
"8.8",
"10.0",
"11.0",
"12.5"
endif

if typ="120 x 80" then
values "wd" "3.6",
"4.0",
"4.5",
"5.0",
"5.6",
"6.3",
"7.1",
"8.0",
"8.8",
"10.0",
"11.0",
"12.5"
endif

if typ="140 x 70" then
values "wd" "3.6",
"4.0",
"4.5",
"5.0",
"5.6",
"6.3",
"7.1",
"8.0",
"8.8",
"10.0",
"11.0",
"12.5"
endif

if typ="140 x 80" then
values "wd" "3.6",
"4.0",
"4.5",
"5.0",
"5.6",
"6.3",
"7.1",
"8.0",
"8.8",
"10.0",
"11.0",
"12.5"
endif

if typ="150 x 100" then
values "wd" "3.6",
"4.0",
"4.5",
"5.0",
"5.6",
"6.3",
"7.1",
"8.0",
"8.8",
"10.0",
"11.0",
"12.5"
endif

if typ="160 x 80" then
values "wd" "3.6",
"4.0",
"4.5",
"5.0",
"5.6",
"6.3",
"7.1",
"8.0",
"8.8",
"10.0",
"11.0",
"12.5"
endif

if typ="160 x 90" then
values "wd" "3.6",
"4.0",
"4.5",
"5.0",
"5.6",
"6.3",
"7.1",
"8.0",
"8.8",
"10.0",
"11.0",
"12.5"
endif

if typ="180 x 100" then
values "wd" "5.0",
"5.6",
"6.3",
"7.1",
"8.0",
"8.8",
"10.0",
"11.0",
"12.5",
"14.2",
"16.0"
endif

if typ="200 x 100" then
values "wd" "5.6",
"6.3",
"7.1",
"8.0",
"8.8",
"10.0",
"11.0",
"12.5",
"14.2",
"16.0"
endif

if typ="200 x 100" then
values "wd" "5.6",
"6.3",
"7.1",
"8.0",
"8.8",
"10.0",
"11.0",
"12.5",
"14.2",
"16.0"
endif

if typ="200 x 120" then
values "wd" "5.6",
"6.3",
"7.1",
"8.0",
"8.8",
"10.0",
"11.0",
"12.5",
"14.2",
"16.0"
endif

if typ="220 x 120" then
values "wd" "6.3",
"7.1",
"8.0",
"8.8",
"10.0",
"11.0",
"12.5",
"14.2",
"16.0"
endif

if typ="250 x 150" then
values "wd" "6.3",
"7.1",
"8.0",
"8.8",
"10.0",
"11.0",
"12.5",
"14.2",
"16.0"
endif

if typ="260 x 140" then
values "wd" "6.3",
"7.1",
"8.0",
"8.8",
"10.0",
"11.0",
"12.5",
"14.2",
"16.0"
endif

if typ="260 x 180" then
values "wd" "6.3",
"7.1",
"8.0",
"8.8",
"10.0",
"11.0",
"12.5",
"14.2",
"16.0"
endif

if typ="300 x 200" then
values "wd" "7.1",
"8.0",
"8.8",
"10.0",
"11.0",
"12.5",
"14.2",
"16.0"
endif


möchte im interface auf die parameter "pr", "typ", "wd" in abhängigkeit zugreifen können....

danke für einen tip
7 ANTWORTEN 7
zzyzx
Newcomer
alle variablen sind in deinem skript so verwendet, als wären es textvariablen. das muss dann in der parameterliste genauso sein, sonst wird das nichts.

es sieht aber so aus, als wäre wd vielleicht ein zahlenparameter, dann müsste das skript folgendermassen geändert werden:

textparameter:
</font><blockquote><font size="1" face="Verdana, Helvetica, sans-serif">Code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">if typ="40 x 40" then values "wd" "2.9","3.2","3.6","4.0","4.5" zahlparameter:
</font><blockquote><font size="1" face="Verdana, Helvetica, sans-serif">Code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">if typ="40 x 40" then values "wd" 2.9,3.2,3.6,4.0,4.5 :winken:
Anonymous
Nicht anwendbar
ist alles als text definiert - und der fehler kommt ja auch schon ganz oben (zeile 4 in ac) hier aufgrund des kopierens in zeile direkt bei "if pr="quadratisch" then"

weitere ideen?
Anonymous
Nicht anwendbar
Habe Dein Script in ein Objekt kopiert und bekomme keine Fehlermeldung.
Es sei denn der Parameter pr ist nicht als Texttyp definiert.
Anonymous
Nicht anwendbar
das habe ich auch gemacht - neues objekt und reinkopiert - nur beim 2. mal aufrufen kommt wieder eine fehlermeldung...... verstehe es auch absolut nicht gerade
Anonymous
Nicht anwendbar
lösung gefunden: hatte im master script die variable "pr" noch einmal definiert - scusi!!!!!!!!!
zzyzx
Newcomer
sonst hätte es auch das hier sein können:
GDL streikt!
Anonymous
Nicht anwendbar
daran dachte ich auch schon 🙂, aber leider war der grösste fehler "vor" dem rechner 🙂