|
|
|
Forum Guru
      
Group: Forum Members
Last Login: 9/4/2008 5:08:57 PM
Posts: 170,
Visits: 490
|
|
I was looking in the online E-Basic help for more details on the InputMasks.Add method (a user wants to change the allowable input from inline script), but this does not seem to be covered. Will this be fixed in the online help for EP2? Or am I just not looking hard enough?
Thanks,
-- David McFarlane
|
|
|
|
|
Forum MVP
      
Group: Administrators
Last Login: 2 days ago @ 8:55:28 AM
Posts: 536,
Visits: 1,158
|
|
| I believe you should be able to perform and custom action or configuration by setting the varying fields to [attrib] references in the E-Studio GUI. And then change adjust those values via List entries or using the c.SetAttrib call prior to the object being run. For example, if you wanted the Allowable to be the 1 and 2 keys if the previous trial was correct and 3 4 if the prev trial was incorrect, you could do somehting like this... If g_nPrevTrialAcc = 1 Then c.SetAttrib "Allowable", "12" Else c.SetAttrib "Allowable", "34" End If
-------------------------------------------- PST has typically discouraged the use of custom scripting of creating InputMasks due to the complexity of the input mask and device architectures and because this area of script is the most likely to change between versions causing backward compatability issues. In addition, the settings involved with input, devices, PreRelease, and timing mode can significantly affect the paradigm due to their configuration and logging natures. The help topics for the InputMaskManager.Add method specifically will not likely be changed/updated. That specific method inherits from RteCollection.Add and just adds the item type to the collection/array. Topics related to the InputMask in general will be updated, but thorough usage and/or examples on creating InputMask via script will not be addressed for the reasons mentioned above. PST typically recommends using E-Studio to create the objects and then using an InLine and/or attribute references to tweak any settings for a custom configuration. Please feel free however to field any questions about accessing created InputMask objects. References in the E-Basic Help that would be useful in understanding some concepts about InputMasks. InputMask Object (topic) InputMaskManager.Responses property InputMaskManager.InputMasks property ResponseData object (topic) -Brandon
|
|
|
|
|
Forum Guru
      
Group: Forum Members
Last Login: 9/4/2008 5:08:57 PM
Posts: 170,
Visits: 490
|
|
Brandon,
I believe you should be able to perform and custom action or configuration by setting the varying fields to [attrib] references in the E-Studio GUI. And then change adjust those values via List entries or using the c.SetAttrib call prior to the object being run.
D'oh! Thanks, of course, we figured that out ourselves just before we got your answer, should have thought of that first.
PST has typically discouraged the use of custom scripting of creating InputMasks due to the complexity of the input mask and device architectures and because this area of script is the most likely to change between versions causing backward compatability issues.
Even I agree that this is a good reason to leave the documentation a little bit open, so I won't carp any further on this . And I will look at the references you so kindly gave, thanks.
-- David McFarlane
|
|
|
|