Jump to content
View in the app

A better way to browse. Learn more.

3D-Modellbahn Studio

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Hallo,
ich lege mit einem Script die Abfragestellen in einer Tabelle an. Die Tabelle liegt in Ereignisse und heißt Fahrstraße

if not deferredCall then
  if controller.state == 1 then

      $("Ereignisse").variables["Fahrstraße"]["01"] = {}
      $("Ereignisse").variables["Fahrstraße"]["02"] = {}
      $("Ereignisse").variables["Fahrstraße"]["03"] = {}
      $("Ereignisse").variables["Fahrstraße"]["04"] = {}

usw.

Mich stört dabei, dass ich die Tabelle Fahrstraße erst anlegen muß, bevor mein script aktiv wird.

Wie kann ich auch die Tabelle in dem script anlegen?

Bei Änderungen erleichtert das ungemein, denn ich muß ja nur die ganze Tabelle löschen und mit dem geänderten script neu einlesen.

Gruß Jürgen

 

vor einer Stunde schrieb jloos:

Mich stört dabei, dass ich die Tabelle Fahrstraße erst anlegen muß, bevor mein script aktiv wird.

Ich verstehe dein Problem nicht ganz, warum legst du die Tabelle Fahrstraße nicht auch im Skript an?

$("Ereignisse").variables["Fahrstraße"] = {}

Viele Grüße,

Neo

  • Author

danke @Neo,

ich will die Tabelle ja in dem oben angegebenen Script anlegen, ich habe es nur nicht gerafft.

Das geht wieder in meine Wissensdatenbank.

Gruß Jürgen

Create an account or sign in to comment

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.