|
|
|
Forum Member
      
Group: Forum Members
Last Login: 7/30/2007 6:06:51 PM
Posts: 25,
Visits: 36
|
|
| Hello, I know you can put an attribute in a textdisplay simply by putting the name of the attribute between [ ] such as [Stimulus]. However, can you do the same for variables and properties of objects ? I know you can use e-basic to change the content of .text but I was wondering if you could add in a variable (like, say, "strWord") or a property (such as "Stimulus.duration" or something) in the GUI without using a script. Thnaks
|
|
|
|
|
Forum MVP
      
Group: Administrators
Last Login: Today @ 9:26:59 AM
Posts: 576,
Visits: 1,254
|
|
| The context is the bridge between pulling items from Lists and script values. The use of the [attrib] in the objects requires the value to be in the context. The main way to use the [attrib] values is to place items in a List object. The 2nd most common is via script using the c.SetAttrib command in script. There are some built in items too like [[Running].Sample]. Because the nature of the language, it would be near impossible or highly inefficient to automatically post all script variables into the context. In addtion, that would make for a very large data file. -Brandon
|
|
|
|
|
Forum Member
      
Group: Forum Members
Last Login: 7/30/2007 6:06:51 PM
Posts: 25,
Visits: 36
|
|
| Thank you for the information. In the same line of though, it is possible to display the [ and ] symbols in a textdisplay object ?
|
|
|
|
|
Forum MVP
      
Group: Administrators
Last Login: Today @ 9:26:59 AM
Posts: 576,
Visits: 1,254
|
|
| I believe that is actually an outstanding issue with E-Studio. It will be able to handle a [ OR a ], but if they are together it will treat them as an attribute. If you do require those characters then you'll need to set them at runtime. Stimulus.Text = "This is an [example] of assigning" Note that the [attrib] expands to looking up attributes in E-Studio. The only place the [attrib] is recognized at runtime is when the value is assigned to a List. -Brandon
|
|
|
|