Recent posts:
Recent replies:

The code you supplied above doesn't compile correctly in Studio, so it looks like you can't read directly to a property of an object directly.  In your case, I would try something like this:

Set Name=##class(Example.Team1).%New()
read "Enter your name: ",nameinput
set Name.Name = nameinput
set status = Name.%Save()

There may be other ways of getting input into an object property, but this is one of the easiest.

Stephen has not followed anybody yet.
Global Masters badges:
Stephen has no Global Masters badges yet.