SaxBasicTheSaxBasicLanguageprovidesthecorelanguagedefinition.ItisVisualBasicforApplications(TM)compatible.SaxBasicLanguageCopyright1993-2001PolarEngineeringandConsultingAllrightsreserved.PrintedDocumentationCopyright1993-2001PolarEngineeringandConsultingAllrightsreserved.WinWrapandPolarEngineeringareregisteredtrademarksofPolarEngineeringandConsulting.VisualBasicforApplicationsisatrademarkofMicrosoftCorporation.ContactFTGSoftwareforhelpinimplementingBasicinFilmStarorScantraq.@ftgsoftware.comPleasedonotcontactSaxSoftwareorPolarEngineering.GroupsDeclaration#Reference,#Uses,Attribute,ClassModule,CodeModule,Const,Declare,Deftype,Dim,Enum...EndEnum,Function...EndFunction,ObjectModule,Option,Private,Property...EndProperty,Public,ReDim,Static,Sub...EndSub,Type...EndType.WithEventsDataTypeAny,Boolean,Byte,Currency,Date,Decimal,Double,Integer,Long,Object,PortInt,Single,String,String*n,Variant,objtype,userenum,usertype.AssignmentErase,Let,LSet,RSet,Set.FlowControlCall,CallByName,Do...Loop,End,Exit,For...Next,ForEach...Next,GoTo,If...ElseIf...Else...EndIf,MacroRun,MacroRunThis,SelectCase...EndSelect,Stop,While...Wend.ErrorHandlingErr,Error,OnError,Resume.ConversionArray,CBool,CByte,CCur,CDate,CDec,CDbl,CInt,CLng,CSng,CStr,CVar,CVDate,CVErr,Val.VariableInfoIsArray,IsDate,IsEmpty,IsError,IsMissing,IsNull,IsNumeric,IsObject,LBound,TypeName,UBound,VarType.ConstantEmpty,False,Nothing,Null,True,Win16,Win32.MathAbs,Atn,Cos,Exp,Fix,Int,Log,Randomize,Rnd,Round,Sgn,Sin,Sqr,Tan.StringAsc,AscB,AscW,Chr,ChrB,ChrW,Format,Hex,InStr,InStrB,InStrRev,Join,LCase,Left,LeftB,Len,LenB,LTrim,Mid,MidB,Oct,Replace,Right,RightB,RTrim,Space,Split,String,Str,StrComp,StrConv,StrReverse,Trim,UCase.ObjectCreateObject,GetObject,Me,With...EndWith.Time/DateDate,DateAdd,DateDiff,DatePart,DateSerial,DateValue,Day,Hour,Minute,Month,MonthName,Now,Second,Time,Timer,TimeSerial,TimeValue,Weekday,WeekdayName,Year.FileChDir,ChDrive,Close,CurDir,Dir,EOF,FileAttr,FileCopy,FileDateTime,FileLen,FreeFile,Get,GetAttr,Input,Input,Kill,LineInput,Loc,Lock,LOF,MkDir,Name,Open,Print,Put,Reset,RmDir,Seek,Seek,SetAttr,Unlock,Write.UserInputDialog,GetFilePath,InputBox,MsgBox.ShowPopupMenuUserDialogBeginDialog...EndDialog,CancelButton,CheckBox,ComboBox,DropListBox,GroupBox,ListBox,MultiListBox,OKButton,OptionButton,OptionGroup,Picture,PushButton,Text,TextBox.DialogFunctionDialogFunc,DlgControlId,DlgCount,DlgEnable,DlgEnd,DlgFocus,DlgListBoxArray,DlgName,DlgNumber,DlgSetPicture,DlgText,DlgType,DlgValue,DlgVisible.DDEDDEExecute,DDEInitiate,DDEPoke,DDERequest,DDETerminate,DDETerminateAll.SettingsDeleteSetting,GetAllSettings,GetSetting,SaveSettingMiscellaneousAboutWinWrapBasic,AppActivate,Attribute,Beep,CallersLine,Choose,Clipboard,Command,Debug.Print,DoEvents,Environ,Eval,IIf,KeyName,MacroDir,QBColor,Rem,RGB,SendKeys,Shell,Wait.OperatorOperators:+,-,^,*,/,\,Mod,+,-,&,=,,,,=,=,Like.Not,And,Or,Xor,Eqv,Imp,Is.AboutWinWrapBasicInstructionSyntaxAboutWinWrapBasic[Timeout]GroupMiscellaneousDescriptionShowtheWinWrapBasicaboutbox.ParameterDescriptionTimeoutThisnumericvalueisthemaximumnumberofsecondstoshowtheaboutbox.Avaluelessthanorequaltozerodisplaystheaboutboxuntiltheuserclosesit.Ifthisvalueisomittedthenathreesecondtimeoutisused.ExampleSubMainAboutWinWrapBasicEndSubAbsFunctionSyntaxAbs(Num)GroupMathDescriptionReturntheabsolutevalue.ParameterDescriptionNumReturntheabsolutevalueofthisnumericvalue.IfthisvalueisNullthenNullisreturned.SeeAlsoSgn.ExampleSubMainDebug.PrintAbs(9)'9Debug.PrintAbs(0)'0Debug.PrintAbs(-9)'9EndSubAnyDataTypeGroupDataTypeDescriptionAnyvariableexpression(Declareonly).AppActivateInstructionSyntaxAppActivateTitle$-or-AppActivateTaskIDGroupMiscellaneousDescriptionForm1:Activatetheapplicationtop-levelwindowtitledTitle$.IfnowindowbythattitleexiststhenthefirstwindowwithattitlethatstartswithTitle$isactivated.Ifnowindowmatchesthenanerroroccurs.Form2:Activatetheapplicationtop-levelwindowfortaskTaskID.Ifnowindowforthattaskexiststhenanerroroccurs.ArrayFunctionBasicLanguageReference4ParameterDescriptionTitle$Thenameshowninthetitlebarofthewindow.TaskIDThisnumericvalueisthetaskidentifier.SeeAlsoSendKeys,Shell().ExampleSubMain'makeProgMantheactiveapplicationAppActivateProgramManagerEndSubArrayFunctionSyntaxArray([expr[,...]])GroupConversionDescriptionReturnavariantvaluearraycontainingtheexprs.ExampleSubMainX=Array(0,1,4,9)Debug.PrintX(2)'4EndSubAscFunctionSyntaxAsc(S$)GroupStringDescriptionReturntheASCIIvalue.Note:Asimilarfunction,AscB,returnsthefirstbyteinS$.Anothersimilarfunction,AscW,returnstheUnicodenumber.ParameterDescriptionS$ReturntheASCIIvalueofthefirstcharinthisstringvalue.SeeAlsoChr$().ExampleSubMainDebug.PrintAsc(A)'65EndSubAtnFunctionSyntaxAtn(Num)GroupMathDescriptionReturnthearctangent.Thisisthenumberofradians.Thereare2*Piradiansinafullcircle.ParameterDescriptionNumReturnthearctangentofthisnumericvalue.SeeAlsoCos,Sin,Tan.AttributeDefinintion/StatementBasicLanguageReference5ExampleSubMainDebug.PrintAtn(1)*4'3.1415926535898EndSubAtt