Antwort auf: custom properties

Startseite Foren Deutsches LiveCode-Forum custom properties Antwort auf: custom properties

#3218
Klaus Major
Administrator

    AHA, Custom Property Set, alles klar! 🙂
    OK, die Syntax dafür ist wie ein Array, daher wohl die leichte Konfusion 🙂

    Here we go:

    ...
    ## Keys dieses CP Sets auslesen:
    put the customkeys["cAllowedUsers"] of this stack into tKeys
    put shell("echo %USERNAME%") into tActualUser
    if (tActualUser is among tKeys) then
          ## Inhalt des gefundenen "Keys" auslesen:
          answer the cAllowedUsers[tActualUser] of this stack 
    end if
    ...

    Das sollte funktionieren.

    Gruß

    Klaus