Spiderbasic Reference Manual 2.31
Total Page:16
File Type:pdf, Size:1020Kb
SpiderBasic Reference Manual 2.31 http://www.spiderbasic.com/ May 18, 2020 Contents I General 17 1 Introduction 18 2 Terms And Conditions 19 3 System requirements 20 4 Installation 21 5 Order 22 6 Contact 24 7 Acknowledgements 25 II The SpiderBasic Editor 26 8 Getting Started 27 9 Working with source files 29 10 Editing features 31 11 Managing projects 37 12 Compiling your programs 42 13 Using the built-in Tools 48 14 Using external tools 56 15 Getting Help 61 16 Customizing the IDE 63 17 Command-line options for the IDE 78 III Language Reference 80 18 Working with different number bases 81 19 Break : Continue 85 20 Using the command line compiler 86 21 Compiler Directives 88 22 Compiler Functions 92 23 Data 97 1 24 Debugger keywords in SpiderBasic 99 25 Define 101 26 Dim 103 27 Enumerations 105 28 For : Next 107 29 ForEach : Next 109 30 General Rules 111 31 Global 114 32 Handles and Numbers 116 33 If : Else : EndIf 118 34 Import : EndImport 119 35 Includes Functions 120 36 Inline Javascript 122 37 Interfaces 124 38 Licenses for the SpiderBasic applications (without using 3D engine) 126 39 Macros 138 40 Pointers and memory access 141 41 Module 144 42 NewList 147 43 NewMap 149 44 Others Commands 151 45 Procedures 153 46 Protected 156 47 Prototypes 158 48 Repeat : Until 159 49 Residents 160 50 Runtime 161 51 Select : EndSelect 163 52 Using several SpiderBasic versions on Windows 165 53 Shared 166 54 SpiderBasic objects 167 55 Static 170 2 56 Structures 172 57 Subsystems 175 58 Variables and Types 176 59 While : Wend 185 60 With : EndWith 186 IV Library Reference 188 61 2DDrawing 189 61.1 Red................................................189 61.2 Green...............................................190 61.3 Blue................................................190 61.4 Alpha...............................................191 61.5 RGB ...............................................191 61.6 RGBA ..............................................192 61.7 BackColor ............................................193 61.8 Box................................................193 61.9 RoundBox ............................................194 61.10 Circle...............................................195 61.11 DrawImage............................................196 61.12 DrawingFont...........................................197 61.13 DrawingMode ..........................................198 61.14 StartDrawing ..........................................199 61.15 DrawText ............................................200 61.16 Ellipse ..............................................201 61.17 FrontColor............................................202 61.18 Line................................................203 61.19 LineXY..............................................204 61.20 Plot................................................205 61.21 Point...............................................206 61.22 StopDrawing...........................................207 61.23 TextHeight............................................207 61.24 TextWidth............................................208 61.25 OutputDepth ..........................................208 61.26 OutputWidth ..........................................209 61.27 OutputHeight ..........................................209 62 Accelerometer 211 62.1 StartAccelerometer .......................................211 62.2 StopAccelerometer........................................211 62.3 AccelerometerX .........................................212 62.4 AccelerometerY .........................................213 62.5 AccelerometerZ .........................................213 62.6 AccelerometerTime .......................................214 63 Array 215 63.1 ArraySize.............................................215 63.2 CopyArray............................................216 63.3 FreeArray ............................................217 64 Cipher 218 64.1 AddCipherBuffer ........................................218 64.2 AESEncoder...........................................219 64.3 AESDecoder...........................................221 64.4 StartFingerprint.........................................222 3 64.5 FinishCipher...........................................224 64.6 AddFingerprintBuffer......................................224 64.7 FinishFingerprint ........................................225 64.8 IsFingerprint...........................................225 64.9 Fingerprint............................................226 64.10 StringFingerprint ........................................227 64.11 UseMD5Fingerprint.......................................228 64.12 UseSHA1Fingerprint ......................................229 64.13 UseSHA2Fingerprint ......................................230 64.14 UseSHA3Fingerprint ......................................231 64.15 UseCRC32Fingerprint......................................231 64.16 StartAESCipher.........................................232 65 Database 234 65.1 AffectedDatabaseRows .....................................234 65.2 CloseDatabase..........................................235 65.3 DatabaseColumns........................................235 65.4 DatabaseColumnIndex .....................................236 65.5 DatabaseColumnName .....................................236 65.6 DatabaseError..........................................237 65.7 DatabaseID ...........................................238 65.8 DatabaseQuery .........................................238 65.9 DatabaseUpdate.........................................240 65.10 ExportDatabase.........................................241 65.11 ExportDatabaseMemory ....................................242 65.12 FinishDatabaseQuery......................................243 65.13 FirstDatabaseRow........................................243 65.14 GetDatabaseBlob ........................................244 65.15 GetDatabaseDouble.......................................245 65.16 GetDatabaseFloat........................................246 65.17 GetDatabaseLong........................................246 65.18 GetDatabaseQuad........................................247 65.19 GetDatabaseString .......................................247 65.20 CheckDatabaseNull.......................................248 65.21 IsDatabase............................................249 65.22 NextDatabaseRow........................................249 65.23 OpenDatabase..........................................250 65.24 SetDatabaseBlob ........................................250 65.25 SetDatabaseString........................................252 65.26 SetDatabaseLong ........................................252 65.27 SetDatabaseQuad........................................253 65.28 SetDatabaseFloat ........................................254 65.29 SetDatabaseDouble .......................................255 65.30 SetDatabaseNull.........................................255 66 Date 257 66.1 AddDate.............................................257 66.2 Date ...............................................258 66.3 Day................................................259 66.4 DayOfWeek ...........................................259 66.5 DayOfYear............................................260 66.6 Month ..............................................261 66.7 Year ...............................................261 66.8 Hour ...............................................262 66.9 Minute..............................................262 66.10 Second ..............................................263 66.11 FormatDate ...........................................264 66.12 ParseDate ............................................265 4 67 Debugger 266 67.1 ShowDebugOutput .......................................266 67.2 CloseDebugOutput .......................................267 67.3 ClearDebugOutput .......................................267 68 Desktop 269 68.1 ExamineDesktops........................................269 68.2 DesktopDepth..........................................270 68.3 DesktopFrequency........................................270 68.4 DesktopHeight..........................................271 68.5 DesktopX.............................................272 68.6 DesktopY.............................................272 68.7 DesktopMouseX.........................................273 68.8 DesktopMouseY.........................................274 68.9 DesktopName ..........................................275 68.10 DesktopWidth..........................................275 69 Dialog 277 69.1 CreateDialog...........................................277 69.2 DialogError ...........................................278 69.3 DialogGadget ..........................................278 69.4 DialogWindow..........................................279 69.5 DialogID.............................................279 69.6 FreeDialog............................................280 69.7 IsDialog .............................................280 69.8 OpenXMLDialog ........................................281 69.9 RefreshDialog ..........................................289 70 File 290 70.1 CloseFile.............................................290 70.2 CreateFile ............................................291 70.3 Eof ................................................292 70.4 ExportFile............................................293 70.5 ExportFileMemory .......................................294 70.6 FetchData ............................................295 70.7 FileID...............................................296