0

Syntax create record

Hi,

i know a sintax for creating a record :

sample :

let p := create Person;

p.Name :="myName";

 

ok nice, but i have one time see a other syntax for creating a record.

Anybody know the other syntax?

like this :

.Name := "myName";

.BirthDay:="12.12.20"

1reply Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
    • K Gamble
    • K_Gamble
    • 3 mths ago
    • Reported - view

    I think I found this on https://nioxus.com/ - cool way to create a record:

    var sea := last(select Season);
    (create Season).(
            Number := number(item(split(varTitle, " "), 1));
            Title := varTitle;
            Tagline := varSpot;
            sea := Id
        )

    where the "var" fields are defined elsewhere in my script.  And the "sea" variable stores the ID of the newly created record, so I can reference it later.  Much cleaner way that I love.

    Like
Like Follow
  • 3 mths agoLast active
  • 1Replies
  • 362Views
  • 1 Following