techBASIC 2.3 Release Notes
New Features
-
•Write programs to access Bluetooth LE devices. Program the Internet of Things right from your iOS device!
-
•techBASIC now supports both vector and pixel graphics drawing modes. Use vector graphics when the image will be scaled or shared, and pixel graphics when drawing repeatedly to the graphics screen.
-
•Drawing commands are now available in the Image class. Draw on top of existing images, or create images entirely from scratch, then use them for buttons or to blit to the screen.
-
•Turn antialiasing on or off.
-
•Draw images to the graphics screen using the new drawImage command.
-
•setColor now has an optional alpha value, allowing drawing with translucent colors.
-
•New trig functions include ACOS, ANGLE (two-argument arc tangent), ASIN, COSH, COT, CSC, SEC, SINH and TANH--everything you'll find in most trig classes is now in techBASIC.
-
•New trig helper functions include PI, DEG and RAD.
-
•Logarithms are available for base 10 and base 2.
-
•The MOD operator returns the integer remainder from a division.
-
•PRINT and PRINT USING can now print to strings, making it easy to take advantage of the formatting power of PRINT USING.
-
•The POS string search function allows fast searches within BASIC strings.
-
•The new LTRIM and RTRIM functions make it easy to remove leading and trailing spaces from strings.
Bug Fixes and Minor Changes
-
•Help is now indexed, so you can find help in the long list of functions, statements, classes and methods quicker.
-
•It's now possible to edit at an error location without moving the cursor from outside the error: Tap on the selected error area, and the error disappears and you begin editing at the tap location. As before, tapping on an error other than the one with a visible message displays the error message for that error.
-
•Sharing text with the Share button no longer leaves techBASIC. The email message that is generated still uses Mail for distribution but this is done from within techBASIC.
-
•MOD is now a reserved word. POS is no longer a reserved word.
-
•The SIZE and LBOUND functions failed on passed parameters. They work correctly, now.
-
•Math.zero could fail to find an answer in some situations. Adjusting the search range returned a valid result. It works correctly in these situations, now.
-
•Disabled and hidden controls still reported touchUpInside events. This no longer happens.
-
•When sharing source code using the Share button, leading spaces are now properly preserved.
-
•Corrected the parameter name for the URL parameter in the documentation for the finishedLoad event.