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

ReGaHSS: .´Srandom() -> gibt keinen Wert, sondern den Namensraum zurück #2644

Closed
BadenPower opened this issue Feb 5, 2024 · 0 comments
Closed
Labels
🐛 bug-report Something isn't working 🏷️ ReGaHss This refs the ReGaHss component

Comments

@BadenPower
Copy link

BadenPower commented Feb 5, 2024

Describe the issue you are experiencing

Die Methode .Srandom() gibt als Resultat keinen Wert, sondern den Namensraum system selbst zurück.

Describe the behavior you expected

Erwartet würde im Erfolgsfall die Rückgabe von true und im Fehlerfall false mit jeweils dem Variabletyp boolean.

Steps to reproduce the issue

Ausführung des folgenden Skriptes unter "Skript testen":

WriteLine("Start");
WriteLine(dom.BuildLabel());
var lResult;
boolean lErrorName = true;
boolean lErrorType = true;
lResult = system.Srandom(1);
WriteLine(lResult # " #");
if(true)
{
  WriteLine("Name: " # lResult.Name() # " #");
  lErrorName = false;
}
if(true)
{
  WriteLine("Type: " # lResult.Type() # " #");
  lErrorType = false;
}
if(lErrorName)
{
  WriteLine("Die Methode .Name() verursachte einen ScriptRuntimeError!");
}
if(lErrorType)
{
  WriteLine("Die Methode .Type() verursachte einen ScriptRuntimeError!");
}
lResult = null;
if(true)
{
  lResult = system.Srandom(1) # " #";
  WriteLine(lResult);
  if(lResult.Substr((lResult.Length() - 2),2) == " #")
  {
    WriteLine("Block erfolgreich beendet!");
  }
  else
  {
    WriteLine("Block fehlerhaft beendet!");
  }
}
WriteLine("Ende");

What is the version this bug report is based on?

CCU3 mit ReGaHSS-Version R1.00.0388.0235

Which base platform are you running?

rpi3 (RaspberryPi3)

Which HomeMatic/homematicIP radio module are you using?

n/a

Anything in the logs that might be useful for us?

bestehend seit:
ab ReGaHss-Version R1.00.0388.0108 (12.05.2017)

Additional information

Ausgabe des Skriptes:

Start
R1.00.0388.0235
 #
Name: ReGaRA Demo #
Type: 
Die Methode .Type() verursachte einen ScriptRuntimeError!
 #
Block erfolgreich beendet!
Ende
@BadenPower BadenPower added the 🐛 bug-report Something isn't working label Feb 5, 2024
@jens-maus jens-maus added the 🏷️ ReGaHss This refs the ReGaHss component label Feb 15, 2024
@jens-maus jens-maus added this to the next release milestone Feb 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug-report Something isn't working 🏷️ ReGaHss This refs the ReGaHss component
Projects
Development

No branches or pull requests

2 participants