SBM ModScript Reference → Programming SBM ModScript → Free Functions → SBM AppScript Conversion Functions
Functions for converting SBM AppScript to SBM ModScript.
These functions were added solely for the purpose of converting SBM AppScript and generally should not be used otherwise. See also SBM AppScript Conversion Constants.
Variant vbEQV( arg1 , arg2 )
Variant vbIMP( arg1 , arg2 )
bool is( arg1 , arg2 )
Variant vbAND( arg1 , arg2 )
Variant vbOR( arg1 , arg2 )
Variant !vbNOT!( arg )
Variant vbXOR( arg1 , arg2 )
Consider using SBM ModScript native operators such as &&, ||, &, |, and ! instead.
Variant CreateObject( arg )
Variant ScriptEngineCompat(): Invokes SBM AppScript ScriptEngine().
Variant ScriptEngineMajorVersionCompat(): Invokes SBM AppScript ScriptEngineMajorVersion().
Variant ScriptEngineMinorVersionCompat(): Invokes SBM AppScript ScriptEngineMinorVersion().
Randomize()
ConvertedFromAppScript( int arg1 , int arg2 ): Placed into converted scripts by the SBM AppScript conversion utility. Invokes Ext.SetCompatibilityVersion( 0, 0 ), which is the SBM AppScript default. For details, see Ext.SetCompatibilityVersion().
Variant VarType( arg )
Variant TypeName( arg )
Variant IsArray( arg )
Variant IsDate( arg )
Variant IsEmpty( arg )
Variant IsNull( arg )
Variant IsNumeric( arg )
Variant IsObject( arg )
Variant CBool( arg )
Variant CByte( arg )
Variant CDate( arg )
Variant CDbl( arg )
Variant CInt( arg )
Variant CLng( arg )
Variant CSng( arg )
Variant CStr( arg )
Variant Hex( arg )
Variant Oct( arg )
Variant Date()
Variant Now()
Variant Time()
Variant DateAdd( arg1 , arg2 , arg3 )
Variant DateDiff( arg1 , arg2 , arg3 , [arg4,[arg5]] )
Variant DatePart( arg1 , arg2 , [arg3,[arg4]] )
Variant DateSerial( arg1 , arg2 , arg3 )
Variant DateValue( arg )
Variant FormatDateTime( arg1 , [arg2] )
Variant Year( arg )
Variant Month( arg )
Variant Day( arg )
Variant Hour( arg )
Variant Minute( arg )
Variant Second( arg )
Variant Weekday( arg1 , [arg2] )
Variant MonthName( arg1 , [arg2] )
Variant WeekdayName( arg1 , [arg2,[arg3]] )
Variant TimeSerial( arg1 , arg2 , arg3 )
Variant TimeValue( arg )
It is recommended that you use the corresponding functions listed in TimeT, TimePoint, TimeMillis, and Locale.
Variant Abs( arg )
Variant Atn( arg )
Variant Cos( arg )
Variant Exp( arg )
Variant Fix( arg )
Variant Int( arg )
Variant Log( arg )
Variant Rnd( )
Variant Sgn( arg )
Variant Sin( arg )
Variant Sqr( arg )
Variant Tan( arg )
It is recommended that you use the corresponding functions listed in Math Functions.
Variant Asc( arg )
Variant AscB( arg )
Variant AscW( arg )
Variant Chr( arg )
Variant ChrB( arg )
Variant ChrW( arg )
Variant Concat( arg1, arg2 )
Variant FormatNumber( arg1 , [arg2,[arg3,[arg4,[arg5]]]] )
Variant FormatPercent( arg1 , [arg2,[arg3,[arg4,[arg5]]]] )
Variant InStr( arg1 , arg2 , [arg3,[arg4]] )
Variant InStrB( arg1 , arg2 , [arg3,[arg4]] )
Variant InStrRev( arg1 , arg2 , [arg3,[arg4]] )
Variant LCase( arg )
Variant UCase( arg )
Variant Left( arg1 , arg2 )
Variant LeftB( arg1 , arg2 )
Variant Right( arg1 , arg2 )
Variant RightB( arg1 , arg2 )
Variant Mid( arg1 , arg2 , [arg3] )
Variant MidB( arg1 , arg2 , [arg3] )
Variant Len( arg )
Variant LenB( arg )
Variant LTrim( arg )
Variant RTrim( arg )
Variant Trim( arg )
Variant Replace( arg1 , arg2, arg3, [arg4,[arg5,[arg6]]] )
Variant Space( arg )
Variant StrComp( arg1 , arg2, [arg3] )
Variant String( arg1 , arg2 )
Variant StrReverse( arg )
ExitDo: An exception type to handle SBM AppScript's Exit Do command.
ExitFor: An exception type to handle SBM AppScript's Exit For command.
ClonedByVal: ChaiScript always passes parameters by reference in function calls. This object helps emulate SBM AppScript's Pass By Value.
Copyright © 2007–2018 Serena Software, Inc., a Micro Focus company. All rights reserved.