asiGetAnalysisOptionList
asiGetAnalysisOptionList(o_analysis) =>l_optionObjects/ nil
Description
Gets a list of analysis option objects defined for a particular analysis object.
Arguments
Value Returned
Examples
The following example returns the list of analysis options:
asiGetAnalysisOptionList( analysis )
The following example shows how you might use the asiGetAnalysisOptionList routine in your asiFormatAnalysisOption routine:
defmethod( asiFormatAnalysisOption ( ( analysis XYZ_trial_analysis ) _fp )
let(( name value command sendMethod (session asiGetSession (analysis )) )
foreach( option asiGetAnalysisOptionList( analysis )
name = asiGetName( option )
value = asiGetAnalysisOptionVal( analysis name )
sendMethod = asiGetAnalysisOptionSendMethod( analysis
name)
if( artBlankString( value ) then
sprintf( command "deprop XYZ_trial %s\n" name )
else
caseq( sendMethod
( set
sprintf( command "set %s=%s\n" name
value )
)
( ptprop
sprintf( command "ptprop XYZ_trial
%s %s\n" name value )
)
( psprop
sprintf( command "psprop XYZ_trial %s
\"%s\" \n" name value )
)
( t
warn( "don't know how to send XYZ trial
option %s\n." name )
command = nil
)
)
)
when( command
asiSendSim( session command nil nil nil )
)
)
)
)
Related Topics
Return to top