Fehler bei opsi-winst & lokale Funktion
Verfasst: 29 Sep 2017, 10:35
Hallo,
erstmal ein dickes, fettes Lob an UIB für die "lokalen Funktionen" ab opsi-winst 4.12.0!
Hab zum ersten Test das 1. Beispiel aus http://download.uib.de/opsi4.0/experime ... tes-de.pdf genommen.
Die letzte Zeile sollte als "erwartetes Ergebnis" "heha" liefern. Bei mir liefert es aber "hehe" zurück!
Verwendete Version von opsi-winst: 4.12.0.5-1
Gruß
Thomas
erstmal ein dickes, fettes Lob an UIB für die "lokalen Funktionen" ab opsi-winst 4.12.0!
Hab zum ersten Test das 1. Beispiel aus http://download.uib.de/opsi4.0/experime ... tes-de.pdf genommen.
Code: Alles auswählen
DefVar $mystr$
DefVar $str1$
set $str1$ = 'ha'
DefFunc myFunc(val $str1$ : string, $str2$ : string) : string
set $result$ = $str1$ + $str2$
endfunc
set $mystr$ = myFunc("he","ho")
set $mystr$ = myFunc("he",timeStampAsFloatStr)
set $mystr$ = myFunc("he",$str1$)
Code: Alles auswählen
(104) [6] [Sep 29 10:19:45:593] [test_local-functions] Set $mystr$ = myFunc("he",$str1$)
(105) [6] [Sep 29 10:19:45:593] [test_local-functions] Set $result$ = $str1$ + $str2$
(106) [6] [Sep 29 10:19:45:593] [test_local-functions] The value of the variable "$result$" is now: "hehe"
Gruß
Thomas