E TRADE BROKING SERVICES

12
Basic! manual, printing instructions for A5 booklet Remove this page before printing. Print the first page on thick cover-paper (160 grs/m^2), then remove Print the other pages double-sided on A4-size paper The pages can then be stapled and folded as A5-booklet

Transcript of E TRADE BROKING SERVICES

Basic! manual, printing instructions for A5 booklet

Remove this page before printing.

Print the first page on thick cover-paper (160 grs/m^2), then remove

Print the other pages double-sided on A4-size paper

The pages can then be stapled and folded as A5-booklet

Basic! for iPad and iPhone

Apple I

Apple II

20 Basic! manual

TimeREM Measure execution time:t1 = TickCountGOSUB Subroutinet2 = TickCountPRINT "Subroutine took ", INT(t2 - t1), " seconds to execute."REM Date/Time functions sample:GOSUB PrintDateTimeENDSubroutine:FOR i=1 TO 1500 PRINT "Test " iNEXTRETURNPrintDateTime:PRINTPRINT "Date: " DATE$PRINT "Time: " TIME$PRINTPRINT "Year: " DateYearPRINT "Month: " DateMonth$ " (" DateMonth ")"PRINT "Day: " DateDay " (" DateWeekDay$ ")"PRINT "Hours: " TimeHoursPRINT "Minutes: " TimeMinutesPRINT "Seconds: " TimeSecondsRETURN

Basic! manual version 3.3

collected and edited by 'Dutchman' — Ton Nillesen

Contents1. Basic! basics............................................................................................................................3

2. Numeric functions....................................................................................................................5

3. String functions........................................................................................................................5

4. File Input/Output......................................................................................................................6

5. Graphics Functions..................................................................................................................7

6. Music functions........................................................................................................................9

7. Bluetooth connection...............................................................................................................9

8. Face recognition......................................................................................................................9

9. Terminal functions..................................................................................................................10

10. Data tab................................................................................................................................10

11. Miscellaneous......................................................................................................................11

12. Sample Code.......................................................................................................................12Area of a Triangle..............................................................................................................12

IF-THEN-ELSE-ENDIF......................................................................................................12

Quadratic Equation (Uses Square Root Function)...........................................................12

FOR-loop, Line Numbers..................................................................................................13

Shuffle cards (Arrays)........................................................................................................13

Count Words (Strings).......................................................................................................14

Fun with Sines...................................................................................................................14

Guess a Number...............................................................................................................15

PieChart............................................................................................................................15

Music!................................................................................................................................16

File I/O...............................................................................................................................16

Touch.................................................................................................................................16

Accelerometer...................................................................................................................17

Mortgage Calculator.........................................................................................................17

BlueTooth Connection......................................................................................................18

Face Recognition..............................................................................................................18

Sprites and Multi-Touch....................................................................................................19

Time...................................................................................................................................20

2 Basic! manual

NotesBasic! forum: http://appball.com/basic/

e-mail Misoft customer support: [email protected]

ASCII characters numerical values: 65=A, 90=Z, 97=a, 122=z, 48=0, 57=9

Pi=3.141592653

iPad 1: Screensize 1024x768 � 5,2 pixels per mmBasic! � Top Margin 63, BottomMargin 40?

available: Portrait: 768x911, landscape: 1024x655

edited by 'Dutchman' 2012 19

Sprites and Multi-TouchLOADSPRITE 1, "Test Sprite"GirlX = ScreenWidth/2GirlY = ScreenHeight/2GirlW = SpriteWidth( 1 )GirlH = SpriteHeight( 1 )Scale = 2ScaleMin = 0.5ScaleMax = 5Scaling = 0CanDrag = 1loop:BEGINDRAWCLSCOLOR 255, 255, 255TEXTFONT 12DRAWTEXT "Tap and Drag me", 16, 30DRAWTEXT "Use two finger 'pinch' and 'expand' gestures to Scale", 16, 45IF Touch = 1 AND CanDrag THEN ' Move sprite with one finger: GirlX = TouchX - ( GirlW/2 * Scale ) GirlY = TouchY - ( GirlH/2 * Scale )ENDIFENDIFIF Touch = 2 THEN ' Scale sprite with two fingers "pinch" or "expand" gesture: IF Scaling = 0 THEN Scaling = 1 ScaleY1 = TouchY1 ScaleY2 = TouchY2 Scale0 = Scale CanDrag = 0 ENDIF dy1 = ScaleY2 - ScaleY1 dy2 = TouchY2 - TouchY1 d = dy2 / dy1 Scale = Scale0 * d IF Scale > ScaleMax THEN Scale = ScaleMax ENDIF IF Scale < ScaleMin THEN Scale = ScaleMin ENDIFENDIFIF Scaling AND Touch < 2 THEN Scaling = 0ENDIFIF Touch = 0 THEN CanDrag = 1ENDIF' Draw sprite at current location:DRAWSPRITE 1, GirlX, GirlY, ScaleENDDRAWGOTO loopEND

18 Basic! manual

BlueTooth ConnectionOPEN "wifi" AS #1loop:IF EOF <> 0 THEN INPUT #1, a$ PRINT a$ENDIFIF Touch THEN INPUT a$ IF a$ = "" THEN PRINT "BYE!" END ENDIF PRINT #1, a$ENDIFIF IsWifiConnected = 0 THEN PRINT "DISCONNECTED!" ENDENDIFGOTO loopCLOSE #1END

Face RecognitionFACERECOGNIZER onCrossSize = ScreenWidth / 10loop:IF IsFaceOnScreen THEN x = FaceX * ScreenWidth y = FaceY * ScreenHeight BEGINDRAW CLS LINE x - CrossSize, y, x + CrossSize, y LINE x, y - CrossSize, x, y + CrossSize ENDDRAWEND IFGOTO loopEND

edited by 'Dutchman' 2012 3

1. Basic! basics

! BASIC Expression examplesA=2B=A+1A=A+1+(B*2^4)/AStringvariables end with a dollarsign:S$="String"Y$=S$+"Another string"Stringvariables have a limit of 128 characters each

! REM — precedes a commentREM This is a comment' This is another comment. It is precede by 'A comment precede by ' can be added after a statement:a=b+c 'this is an example

! PRINT — output a stringPRINT "Hello World"PRINT "Age=",agePRINT S$Output continues on same line if preceding PRINT statement finishes with a semicolon.PRINT "This is the trailer ";PRINT "and this continues on the same line."

! PRINT USING — formats numbers to the desired number of decimalsPRINT USING "####";55.1234 � will print : ' 55'PRINT USING "####.#";55.1234 � will print : ' 55.1'

! INPUT — Input from keyboard into a variableINPUT "What is your name?", A$PRINT "What is your age?"INPUT Age

! IF - THEN - ELSE - ENDIFIF Age<20 THEN

PRINT "Teenager"ELSE

PRINT "Adult"ENDIF

! GOTO — jump to certain program section10 PRINT "Endless loop"GOTO 10

loop:PRINT "Endless loop"GOTO loop

! FOR - TO - STEP - NEXT — LoopsFOR i=0 TO 100 STEP 10

PRINT INEXT

4 Basic! manual

! WHILE - WEND — Loopsa=10WHILE a>0

a=a-1PRINT a

WEND

! GOSUB - RETURN — Goto subroutine, return from subroutinePi=3.141592653A=Pi/2GOSUB SinPlusCosPRINT ResultENDSinPlusCos:Result= SIN(A) + COS(A)RETURN

! END — Terminates the program

! DIM — Declare an arrayNumBalls=10DIM BallX(NumBalls), BallY(NumBalls)…FOR i=1 to NumBalls-1

BallX(i)=BallX(i+1)BallY(i)=BallY(i+1)

NEXTNote: Array bounds start at 1. There is a "reasonable" limit on array dimensions, to pre-vent running out of memory

Arrays can be multidimensional:DIM Matrix(3,3)Matrix(1,1)=1Matrix(2,2)=1Matrix(3,3)=1

! DATA - RESTORE - READ — Define, set pointer and read data encoded in programDIM S$(3), N(3)RESTORE MyDataFOR i=1 TO 3

READ S$(i), N(i)NEXT…MyData:DATA "one",1, "two", 2, "three", 3

edited by 'Dutchman' 2012 17

AccelerometerACCELCALIBRATELOCKORIENTATIONBallX = ScreenWidth/2BallY = ScreenHeight/2BallR = 10Speed = 0.5loop:BallX = BallX + AccelX*SpeedBallY = BallY + AccelY*SpeedIF BallX < 0 THEN BallX = 0END IFIF BallX > ScreenWidth THEN BallX = ScreenWidthEND IFIF BallY < 0 THEN BallY = 0END IFIF BallY > ScreenHeight THEN BallY = ScreenHeightEND IFCIRCLE BallX, BallY, BallRIF Touch=1 THEN ACCELCALIBRATEEND IFGOTO loopEND

Mortgage CalculatorGOSUB InputValuesGOSUB CalculatePRINT "Monthly Payment: ", paymentENDInputValues:INPUT "Purchase Price" loanAmountINPUT "Term of Loan (Years)" termOfLoanINPUT "Interest Rate" interestRateRETURNCalculate:mpr = interestRate / 1200months = termOfLoan * 12nfactor = 0 - monthsmofactor = ( 1 + mpr ) ^ nfactorbofactor = 1 - mofactortofactor = mpr / bofactorpayment = loanAmount * tofactorRETURN

16 Basic! manual

Music!REM Music!REM Play Twinkle Twinkle Little StarLine1$ = "C3,2,C3,2,G3,2,G3,2,A4,2,A4,2,G3,1"Line2$ = "F3,2,F3,2,E3,2,E3,2,D3,2,D3,2,C3,1"Music$ = Line1$ + "," + Line2$PLAY 1, Music$END

File I/OREM Populate text fileOPEN "text" FOR OUTPUT AS #1FOR i=1 TO 10 PRINT #1, "i = " iNEXTCLOSE #1REM Read text fileOPEN "text" FOR INPUT AS #1FOR i=1 TO 10 INPUT #1, a$ PRINT a$NEXTCLOSE #1REM Populate numeric fileOPEN "numbers" FOR OUTPUT AS #1FOR i=1 TO 10 PRINT #1, iNEXTCLOSE #1REM Read numeric fileOPEN "numbers" FOR INPUT AS #1FOR i=1 TO 10 INPUT #1, a PRINT aNEXTPRINTCLOSE #1

TouchREM Doodle!loop:IF Touch=1 THEN CIRCLE TouchX, TouchY, 10END IFGOTO loopEND

edited by 'Dutchman' 2012 5

2. Numeric functions! SIN(a) — Returns the sine of the angle a radians

! COS(a) — Returns the cosine of the angle a radians

! TAN(a) — Returns the of the angle a radians

! ATN(a) — Returns the arctangent of the angle a radians

! SQR(n) — Returns the square root of the number n

! ABS(n) — Returns the absolute value of the number n

! INT(n) — Returns the integer part of the floating point number n

! LOG(n) — Returns the natural logarithm of number n

! LOG10(n) — Returns the common (base-10) logarithm of number n

! EXP(n) — Returns the base-e exponential function of number n

! MOD(a,b) — Returns the floating point remainder of a/b

! RND — Generates and returns a random number from 0 to 1.a+RND*b generates a random number from a to b

3. String functions! UPPER$(s$) — Make string Uppercase

! LEFT$(s$,n) — Take n characters from string's left

! MID$(s$,i,n) — Take n characters from string starting with i

! RIGHT$(s$,n) — Take n characters from string's right

! LEN(s$) — Return string length

! VAL(s$) — Convert string into a number

! STR$(n) — Convert number into a string

! ASC(s$) — Return ASCII code of string's first character

! CHR$(n) — Return string containing a single ASCII character

! SPC(n) — Return a string containing n space characters

6 Basic! manual

4. File Input/Output! OPEN "filename

FOR INPUTor OUTPUTor APPEND

AS #file_idOpen file for either reading or writing. Filename may optionally contain disk drive, for ex-ample "B;MyFile". file_id is any integer value.OPEN "Results" FOR OUTPUT AS #1OPEN "A:MyData" FOR INPUT AS #2

! PRINT #file_id, … — Write data into opened filePRINT #1, "Age=", AgePRINT #1, s$

! INPUT file_id, variable — Read variable from opened fileINPUT #1, AgeINPUT #1, Line$

! EOF — Return 1 if last INPUT # command reached end of file.WHILE EOF=0 INPUT #1, a IF EOF=0 THEN PRINT a END IFWEND

edited by 'Dutchman' 2012 15

Guess a NumberPRINT "Guess a number from 1 to 100"upper = 100lower = 1N = 50Guesses = 0input1:Guesses = Guesses + 1IF Guesses > 20 THEN PRINT "Sorry, I give up, you win!" ENDEND IFPrompt$ = "Is it greater than " + STR$( N ) + "?"INPUT Prompt$, a$IF UPPER$( LEFT$( a$, 1 ) ) = "Y" THEN lower = N N = INT( N + (upper - N) / 2 ) GOTO input1ENDIFIF UPPER$( LEFT$( a$, 1 ) ) = "N" THEN input2: Prompt$ = "Is it less than " + STR$( N ) + "?" INPUT Prompt$, a$ IF UPPER$( LEFT$( a$, 1 ) ) = "Y" THEN upper = N N = INT( N - (N - lower) / 2 ) GOTO input1 ENDIF IF UPPER$( LEFT$( a$, 1 ) ) = "N" THEN PRINT "It is " N END ENDIF GOTO input2END IFEND

PieChartDIM percentages(3), r(3), g(3), b(3)percentages(1) = 20percentages(2) = 40percentages(3) = 30r(1) = 255g(2) = 128b(3) = 255PIECHART 100, 100, 50, 3, percentages, r, g, bCOLOR 0,128,255TEXTFONT "Times", "Bold Italic", 18DRAWTEXT "Item 1: " + STR$(percentages(1)) + "%", 200, 50DRAWTEXT "Item 2: " + STR$(percentages(2)) + "%", 200, 70DRAWTEXT "Item 3: " + STR$(percentages(3)) + "%", 200, 90END

14 Basic! manual

Count Words (Strings)INPUT "Enter sentence: ", a$n = LEN(a$)NumWords = 0SpaceFound = 1IF n = 0 THEN ENDENDIFFOR i = 1 TO n s$ = MID$( a$, i, 1 ) ch = ASC( s$ ) IF ch = 32 THEN SpaceFound = 1 ELSE IF SpaceFound = 1 THEN NumWords = NumWords + 1 SpaceFound = 0 ENDIF ENDIFNEXT iPRINT "There are", NumWords, "words in this sentense."END

Fun with SinesREM Let's have fun with Sines!x0 = 200y0 = 200a1 = 1a2 = 2a3 = 3a4 = -1n1 = 100n2 = 100n3 = 100n4 = 100da1 = 0.11da2 = -0.11da3 = 0.21da4 = -0.23loop:BallX = x0 + n1*SIN(a1) + n2*COS(a2)BallY = y0 + n3*SIN(a3) + n4*COS(a4)CIRCLE BallX, BallY, 3a1 = a1 + da1a2 = a2 + da2a3 = a3 + da3a4 = a4 + da4GOTO loop

edited by 'Dutchman' 2012 7

5. Graphics Functions! COLOR r, g, b [, alpha] — Set current color

Where r, g, b and alpha are floating point values in either [0 to 1] or [0 to 255] range

! ColorR, ColorG, ColorB, ColorA — Return current color

! BCOLOR r, g, b, — Set console background color.

! BcolorR, BcolorG, BcolorB — Return current background color

! TCOLOR r, g, b — Set console text color

! TcolorR, TcolorG, TcolorB — Return current console text color

! CLS or CLS GFX or CLS TTY

! BEGINDRAW and ENDDRAW — Surround your drawing code by those two to achieve flicker-free animation

! POINT x, y [, point_size] — Draw a point. Default size is 1 (pixel)

! LINE x1, y1, x2, y2 [, line_width] — Draw a line

! RECT x1, y1, x2, y2 [, line_width] — Stroke or fill a rectangle. Rectangle is filled when line_width<=0 (which is default)

! CIRCLE x, y, radius [, line_width] — Stroke or fill a circle. Circle is filled when line_width<=0 (which is default)

! ELLIPSE x1, y1, x2, y2 [, line_width] — Stroke or fill an ellipse. Ellipse is filled when line_width<=0 (which is default)

! SHAPE num_points, point_xs, point_ys [, line_width] — Draw a custom shape defined by lines. Lines are represented by two arrays: point_xs and point_ys. Shape is filled when line_width<=0 (which is default)

! TOUCH — Function that returns 1 when screen is touched and 0 otherwise. It returns 2 when two fingers touch the screen.TouchX and TouchY — Functions that return position where screen was touched.TouchX2 and TouchY2 — Functions that return position of a second finger touch. ("Multi-touch"). Those are valid only when TOUCH returns 2.See Samples for Touch, Sprites and Multi-Touch

! ScreenWidth and ScreenHeight — Functions that return screen dimensions.Example: LINE 0, 0, ScreenWidth, ScreenHeight

! IsLandscape — Return 1 when device orientation is Landscape, 0 when Portrait

! LOCKORIENTATION — Lock current device orientation. i.e. when device is rotated, ori-entation will not change.

! AccelX, AccelY and AccelZ — Return accelerometer readings. Those values are in range from -1 to 1.

! ACCELCALIBRATE — Calibrate the accelerometer. See accellerometer sample.

! PIECHART x, y, r, num_items, percentages_array, red_array, green_array, blue_arrayDraw a piechart at (x,y) with radius r. Piechart will have num_items elements in it.Percentages_array is an array each item of which contains a number from 0 to 100 in-dicating size of each pie element. R ed_array, green_array and blue_arrayare arrays containing each element color. See PieChart sample.

! DRAWTEXT text, x1, y1, [, x2, y2] — Draw text either at given point or inside a rect-angle.

8 Basic! manual

! TEXTFONT — Select a font for the DRAWTEXT commandPossible parameters are:["font name"], [""style"], [text height]. Parameters in brackets are opyional. TEXTFONT with no parameters selects a default font.E.g.: TEXTFONT "Zapfino","Bold",44or: TEXTFONT "Times",24or: TEXTFONT 16Text is drawn with a color set by COLOR commandAvailable fonts:- American Typewriter- AppleGothic- Arial- Arial Rounded- Courier- Georgia- Helvetica- Marker Felt- Times- Trebuchet- Verdana- Zapfino

! LOADSPRITE sprite_id, file_name — Create and load a "sprite" (a graphical image), give it an id: a positive integer number. Sprite's file_name is case sensitive.Use given id with DRAWSPRITE command.NOTE: to add a sprite datafile into Basic! one should use the Data Files Tab.

! DRAWSPRITE sprite_id, x, y [,scale][, angle] — Draw a sprite on screen at given x,y. Optional scale parameter is 1 by default. Second optional "angle" parameter is 0 (de-grees) by default. See sample for usage.

! SpriteWidth and SpriteHeight (sprite_id) — Return width or height of a sprite.

edited by 'Dutchman' 2012 13

FOR-loop, Line Numbers10 INPUT "What's your name" name$20 IF LEN(name$) = 0 THEN 30 GOTO 13040 END IF50 IF UPPER$(name$) = "JOHN" THEN 60 FOR i=0 TO 100 STEP 10 70 PRINT "Hello John!" 80 NEXT i90 ELSE 100 PRINT "ACCESS DENIED!" 110 PRINT "Just Kidding"120 END IF130 PRINT "The End"END

Shuffle cards (Arrays)DIM S$(4), C$(13), X(52)FOR i=1 TO 4 READ S$(i)NEXT iFOR i=1 TO 13 READ C$(i)NEXT iFOR i=1 TO 52 X(i) = 0NEXTinput:INPUT "How many cards do you want?", nIF n<=0 OR n>52 THEN GOTO INPUTENDIFFOR i = 1 TO n cn = INT(1 + 52 * RND) IF X(CN) = 1 THEN 10 cn = INT(1 + 52 * RND) IF( X(cn) <> 0 ) THEN GOTO 10 ENDIF END IF X(cn) = 1 Suit = INT(1 + (cn - 1) / 13) Card = cn - 13 * (Suit - 1) PRINT "#" i, C$(Card) " of " S$(Suit)NEXTDATA "Clubs", "Diamonds", "Hearts", "Spades"DATA "Ace", "2", "3", "4", "5", "6", "7", "8", "9", "10", "Jack", "Queen", "King"END

12 Basic! manual

12. Sample Code

Area of a TriangleINPUT "Height =", HINPUT "Base = "; BA=B*H/2PRINT "The area is "; AEND

IF-THEN-ELSE-ENDIFINPUT "Input Age: ", ageIF age < 14 THEN PRINT "Junior Programmer"ELSE IF age < 18 THEN PRINT "Novice Programmer" ELSE PRINT "Expert Programmer" END IFEND IFIF age >= 18 THEN PRINT "Eligible to vote"ELSE PRINT "Not eligible to vote"ENDIFEND

Quadratic Equation (Uses Square Root Function)PRINT "Ax^2 + Bx + C = 0"INPUT "A = ", AINPUT "B = ", BINPUT "C = ", CD=B*B-4*A*CIF D > 0 THEN DS = SQR(D) PRINT "REAL ROOTS:", (-B - DS) / (2 * A), (-B + DS) / (2 * A)ELSE IF D = 0 THEN PRINT "DUPLICATE ROOT:", (-B) / (2 * A) ELSE DS = SQR(-D) PRINT "COMPLEX CONJUGATE ROOTS:", (-B / (2 * A)); "+/-"; DS / (2 * A); "i" END IFEND IFEND

edited by 'Dutchman' 2012 9

6. Music functions! PLAY channel_index [, notes]

- "channel_index" is a number from 1 to 3: you can have up to three channels playing at the same time.

- "notes" is a string defining notes to play. When this parameter is omitted, it means that sound on this channel is stopped. The format of the string is: note name, comma, note duration etc. "note name" is any-thing of: C1, C1#, D1, D1#, …C5. It can also be a space character, which means a pause (silence). "note duration" is a number which gives the note duration. The usual values are 1, 2, 4, 8 and 16.PLAY 1, "C3,1, ,1,A3#,2"PLAY 1 ' Stop the sound on channel 1A$="C3,2,C3,2,F3,2,F3,2,G3,2,G3,2,F3,1"PLAY 1, A$

! VOLUME n — Change play volume, where n is a floating point number from 0 (mute) to 1 (maximum). The default value is 0.1.

! PLAYSPEED n — Adjust music play speed, where n is a value from 0 to 8. The default value is 1. PLAYSPEED 0.5 - would play twice as slow; PLAYSPEED 2 - would play twice as fast.

7. Bluetooth connection! OPEN "wifi" AS #file_id. — A list of bluetooth devices in the vicinty will be presented

from which to choose to connect to. file_id is any integer value.

! PRINT #file_id —

! INPUT #file_id — Print and Input commands can be used to transfer data between devices

! EOF — should be used to check availability of incoming data.

! CLOSE #file_id — disconnect

! IsWifiConnected — can be used to check if connection still existsSee sample code for further explanation

NOTE: Bluetooth connectivity should be enabled. It can be done in Settings / General / BlueTooth

8. Face recognition! FACERECOGNIZER [on, off] — Turns face recognition on or off. If it is 'on', device per-

formance will slow down.

! IsFaceOnScreen — Function returns 1 when face is detected by the front facing cam-era. 0 otherwise

! FaceX and FaceY — Coordinates of detected face on screen. The value is in [0…1] range.For more details see the sample code

NOTE: Front-facing camera is required, e.g. iPhone 4 or iPad 2

10 Basic! manual

9. Terminal functionsTo enter Immediate Mode (Terminal Mode), tap the screen while in Terminal Tab. Key-board will show up. You may then enter a command that will be executed immediately.

! SAVE "filename" — Save code in editor to file

! LOAD "filename" — Load code or data into editor from file

! A: and B: — Select virtual drive for storage

! DIR [A: or B:] or CATALOGUE [A: or B:] — List files on a drive

! COPY "source filename" "destination filename" — Copy file

! DELETE "filename" — Delete file

! NEW — Clear the code

! RUN — Run the code

! LIST "filename" — Print file content

! EMAIL ["filename"] — E-mail code in editor or contents of file

! PASTE — Paste code from clipboard. (Terminal mode only)

! COPY (without parameters) — Copy Terminal output into clipboard

! AIRPRINT — Output Terminal on printer (on device that supports air printing)NOTE: Backgroundcolor is printed as seen. So change backgroundcolor to prevent printing black background on paper.

! STEP — When program is interrupted, step one line

! GO — When program is interrupted, resume execution

NOTES:Line Numbers may be used in the Immediate Mode to enter code directlye.g. 10 PRINT "Hello"Codes entered in Terminal mode execute immediately and are saved in editor only when coded with line numbers.

10. Data tabTo import data files into Basic! (such as sprite images or text files) tap the Data Tab.Previously imported Data files are listed. The list is initally empty. You can add files by importing images from device's Photo Album, or by pasting data from the clipboard.Tap "View Selected File" button to look at the selected data file.Tap "Delete Selected File" button to delete selected data file.

NOTE:File names are case sensitive!!

edited by 'Dutchman' 2012 11

11. Miscellaneous! PAUSE ["message"] — Prints optional pause message and pauses program execution

until a screen touch

! SLEEP n — Pause program during n seconds. Seconds parameter n can be floating point, e.g. SLEEP 1.5 will pause for one second and a half

Time and Date functions

! TickCount — Get device tick counter. It is actually a number of seconds passed since some date.This function can e.g. be used to know how long certain code executes:t1 = TickCountGOSUB Subroutinet2 = TickCountPRINT "Subroutine took ", t2-t1, " seconds to execute"

! DATE$ — Get a string containig current date

! TIME$ — Get a string containing current time

! DateYear — Returns an integer: current year

! DateMonth — Returns an integer: current monthnumber (1…12)

! DateMonth$ — Returns a string:current month name ("January", etc.)

! DateDay — Returns an integer: current day number (1…31)

! DateWeekDay$ — Returns a string with current week day ("Sunday", etc.)

! TimeHours — Returns an integer: current hour (1…24)

! TimeMinutes — Returns an integer: current minute (0…59)

! TimeSeconds — Returns an integer: current second (0…59)