Functions
Function
Funktionsgruppe for aray-functions:
arr: multifunktional according to Parameter
arr, aray, explode, sort, reverse, copyarray
string = arr.count ( aray )
Return Value: Number of Entries in the aray.
length, count
aray = arr.reverse ( aray )
Umkehr the Order the Entries.
string = arr.serialize ( aray )
supply a String-Repräsentation the contents of aray, compatible with php unserialize.
aray = arr.sort ( aray )
Alphanumerische Sorting.
aray = arr.sortnum ( aray )
Numerische Sorting.
aray = arr.unserialize ( string )
Wandelt a String-Repräsentation into aray.
aray = arr.usort ( aray , proc )
Benutzerdefinierte Search with eigener Callback-Proc.
The Funktionsgruppe audio for Audio-functions.
audio.beep
Beep, music, Sound, Play
audio.beep
Created a short Piep-tone.
string = chr ( long )
supply the characters long as String back, 65 = A.
chr
cls ( [ long HintergrFarbe ] )
deletes whom Print-screen and - optional - setting a Backgroundcolor.
clear, cls
{...} = dev[.*] ( ...
The Funktionsgruppe dev position The functions geräteabhängig dar:
device, kernel, region, language, cpu, ram, battery, tools-properties
The Funktionsgruppe dev.audio is too under audio accessible.
yet not implementiert.
yet not implementiert.
yet not implementiert.
The function dev.file is too over file accessible.
{ zero | long | aray } = dev.gps [ ( [ bool active ] ) ] Â
The function dev.gps bid Opportunities for Positionsermittlung, Positionsdaten stand simply in aray = dev.gps(). The Positionsermittlung can with dev.gps(true) activate go.
GPS, position, Location, network
string = dev.internet.http ( string url [, bool Sync = true [, { string file | proc Proc } [, aray values]]])
Webserver/ URL-call, läd and sends data by http-log on Webserver.
http, download, dw.get
yet not implementiert.
uses, supply or setting grundsätzliche properties the Phone-Modules:
dev.phone
EMEI, Telefonnr., Operator, Call, SMS
dev.phone.call ( string )
calls without further Interaktionen The number string by Phone-Module.
dev.phone.calldialog ( string )
Öffnet The telephone number String in the Phone-Module.
The function dev.screen is too over screen accessible.
The function dev.screen.gui is too over gui accessible.
The function dev.screen.gui.msg is too over msg accessible.
{ ... } = dev.thread[.* ( ...
The Funktionsgruppe dev.thread bid functions for Use with Threads:
dev.thread.killtimer ( long timerhandle )
deletes a with dev.thread.settimer erstellten Timer.
long = dev.thread.settimer ( long ms , @proc , bool repeat , mix userdata )
Return Value: lever the Timers
dev.thread.sleep ( long ms )
keeps whom Hauptthread for ms Millisekunden on, where dev.thread.sleep 1000 a second wait.
sleep
proc event ( long id [, { long data | aray data } ] )
function event becomes called, once one globales Event appears How z.B. pressing of Systemtasten or one Error.
event, onbackpressed, onerror, onmenupressed, onkey, mouse, ontap, fingers, battery, phonestate
{ ... } = exec[.* ( ...
The Funktionsgruppe exec bid functions for Use with the system, APPs and APK-Paketen.
exec, run, shellexec
{ ... } = file.* ( ...
The Funktionsgruppe file bid functions for Use with Files and Verzeichnissen or. the Dateisystem:
fattr, fileexists, DirExists, fsize, ftime, dirsize, disksize, diskfree
bool = file.chdir ( string directory )
Verzeichniswechsel to string directory.
chdir
bool = file.copy ( string File1, String File2 )
copies File1 to File2.
bool = file.del ( string { Dateiname | Verzeichnisname } )
deletes File or directory and gives back true/false if file o. directory not any more existing.
fdel, rmdir
bool = file.DirExists( string )
Return Value: whether directory string existing.
long = file.diskfree()
Return Value: amount suitor Bytes on volume.
long = file.disksize( string )
Return Value: Size current volume in Bytes.
bool = file.exists ( string )
Return Value: whether File string existing.
string = file.getdir()
Return Value: the actually Arbeitsverzeichnis.
string = file.getdir.app()
Return Value: Basisverzeichnis the APP plus "files/", (z.B. /data/data/myapp/files/) - So the directory, into a AndroidAPP hineingestartet and is where tappt im dunkeln your Files lay out should. this is too the directory, which of chdir() same to Program Start zurückgeliefert would.
string = file.getdir.appcache()
Return Value: Cacheverzeichnis the APP (z.B. /data/data/myApp/cache/) - So the directory, into a AndroidAPP cache-data take off should. user having The Possibility these data To delete In the Control Panel -> APPs -> myApp -> [cache-Delete].
string = file.getdir.appres()
Return Value: Ressourcen-directory the APP (z.B. /data/data/myApp/res/) - So the directory, into The with the IDE into directory /res/ additional hochgeladenen Files stored are.
string = file.getdir.sdcard()
Return Value: directory the SD-ticket.
string = file.getdir.system()
Return Value: Android Systemverzeichnis (ANDROID_ROOT)
aray = file.list ( [ string mask [, bool directories ] )
gives one aray with File- and Verzeichnisnamen in the actually directory back.
addfiles, glob
bool = file.mkdir( string )
places directory string on.
string = file.read ( string Dateiname )
supply whom Dateiinhalt from File as String.
fread, file_get_contents, blockread
long = file.size( string )
Return Value: Size of File string, or -1 unless existent, or -2 if one gleichnamiges directory existing.
long = file.time ( string )
Return Value: Unix Zeitstempel latest Änderung of File string.
long = file.unzip ( p1,p2 )
File entpacken, p1 is the ZIP-File and p2 the Zielverzeichnis.
{ bool | long } = file.write ( { string Dateiname [, string Content [, bool append ] ] } )
Created a File or one Verzeichnis; writes Content in a File, optional depends Content on a File on.
fwrite, fappend, fmkdir
long = file.zipper ( p1 , p2 )
ZIP-File create, P1 is the To packende File or one aray with Filenames the To packenden Files and P2 is the zipper-Dateiname
float = float( { string | long } )
supply whom in Parameter 1 angegebenen worth as Floatwert.
float
{ ... } = gui.* ( ...
The Funktionsgruppe gui bid functions for grafically Benutzeroberfläche.
Controls, Buttons, input
long = gui.background ( { long Control | [ aray ( long Controls , long Column , long Row ) ] } [, mix Color ] )
setting The Backgroundcolor one Controls on Parameter long Color.
long = gui.grid ( { long Parent | aray ( long Parent , long CellX , long CellY ) } , [ aray ( long Columns , long Rows ) ] )
Created one Grid.
long = gui.height ( [ long control ] )
Return Value: Höhe in Pixel the Mainwindow, or, if long Control indicated, Höhe the Controls.
gui.show ( { long control | long grid , x , y } , long fashion )
setting The Sichtbarkeit the Controls and/ or the Grid-cell on fashion:
long lever = gui.Text ( { aray parent , string Text [, @proc] | long textControl , string Text } )
prepares one Text-Control in of/ one Grid-cell or changes whom display-Text one Text-Controls.
long = gui.theme ( { long Control | [ aray ( long Control , long Column , long Row ) ] } [, long theme] )
setting the Theme (Appearance) one Controls.
long = gui.width ( [ long control ] )
Return Value: wide in Pixels the Mainwindow, or, if long Control indicated, wide the Controls.
long = len ( { string | aray } )
Number of characters in the string or Number of Entries in the aray.
len, count
long = long( { float | string } )
Converts Float or String a ganzzahligen Datentyp.
long
{ ... } = math.* ( ...
The Funktionsgruppe math bid important mathematical functions and Konstanten:
sin, cos, tan, asin, acos, atan, sqrt, pi, deg2wheel, wheel2deg, GeoDist
float = math.acos ( float )
Return Value: Arkuskosinus of float
float = math.asin ( float )
Return Value: Arkussinus of float
float = math.atan ( float )
Return Value: Arkustangens of float
float = math.cos ( float )
Return Value: Kosinus of float
float = math.deg2wheel( float )
Return Value: Winkel float in the Bogenmaß.
float = math.geodist ( aray pt1 , aray pt2 )
Return Value: Float, distance in metres
float math.pi = 3.141592653589793
Info: Math.pi is no no function separate a Constant.
float = math.wheel2deg ( float )
Return Value: Bogenmaß float to Winkel.
long = math.rnd ( long )
See: rnd
float = math.sin ( float )
Return Value: Sinus of float
float = math.sqrt ( float )
Return Value: Quadratwurzel of float
float = math.tan ( float )
Return Value: Tangens of float
The Funktionsgruppe msg position Dialog box and Benachrichtigungsfunktionen available:
msg
msg, input, toast, notify, messagebox
msg.box ( cover [, Text, [ { string Button | aray Buttons }, [ string EingabefeldTextVorgabe [, @myProc ] ] ] ] )
Created a asynchrone MessageBox, it can at the same time several MessageBoxen showing.
msg.notify ( Text [, cover [, LED [, Options ] ] ] ] )
Created a Notifikation in the curtain, ggf. and optimal with: Icon, Headline, Nachrichtenzeile, of/ one further Nachrichtenzeile, of/ one rechtsbündige Zahlenanzeige.
msg.toast ( Text [, cover ] )
Created a (mostly only short visible) nichtinvasive Message (mostly in the downstairs Drittel the Bildschirmes), such a thing How "Mit WLAN networking xyz joined."
long = ord( string )
supply the value the first Zeichens in the string, A = 65.
ord
print ( { string | long | float | aray | boolean | zero } [ ...
print
print, print_r, color
print.cls ( long )
See: cls
print.color ( { zero | col1 } [, col2 ] )
setting The Text- (col1) and Text Background- (col2) colour for Print-expenses.
long = rgb ( r, g, b [, a ] )
supply whom Farbwert for colour ruddy,green,blue and optional alpha.
rgb, getavalue, getbvalue, getgvalue, getrvalue
long = rgb.getavalue ( col )
supply whom Alphaanteil from colour col
rgb, getavalue, getbvalue, getgvalue, getrvalue
long = rgb.getbvalue ( col )
supply whom Blauanteil from colour col
rgb, getavalue, getbvalue, getgvalue, getrvalue
long = rgb.getgvalue ( col )
supply whom Grünanteil from colour col
rgb, getavalue, getbvalue, getgvalue, getrvalue
long = rgb.getrvalue ( col )
supply whom Rotanteil from colour col
rgb, getavalue, getbvalue, getgvalue, getrvalue
long = rnd ( long )
Zufallszahl between 0 and long-1.
rnd
{ long | float } = round ( { long | float } [, long Nachkommastellen [, bool cut off ]] )
Rundet the value from Parameter 1 or - if bool cut off true, cut The Nachkommastellen ex.
round, trunc
Funktionsgruppe for display- and display-properties:
screen: supply assoziatives aray with actually Values
display, screen, landscape, portrait, sensor, maxx, maxy
bool = screen.fullscreen [ ( [ bool ] ) ]Â
determined or setting whom Vollbildmous, according to the whether Parameter bool transfer or not.
Vollbild
long = screen.height ()
Return Value: Long, Bildschirmhöhe in Pixel.
screen, dissolution
bool = screen.keepon [ ( [ bool ] ) ] Â
determined or setting, according to the whether Parameter bool transfer, whether The automatic Bildschirmabschaltung deaktiviert is:
screen, Abschaltung, TimeOut
long = screen.rotation [ ( [ long ] ) ] Â
display-Rotation detect, or, determine if Parameter n transfer.
long = screen.width ()
Return Value: Long, Bildschirmbreite in Pixel.
screen, dissolution
{ ... } = st[.* ( ...
The Funktionsgruppe st bid functions for Use with Stringinhalten and Konvertierungen:
st, base64, decode64, encode64, implode, in that, instr, lower, md5, mid, sh1, sh256, shuffle, strpos, translate, upper, serialize
string = st.chr ( long )
See: chr
string = st.decode64 ( string )
Return Value: Base64-Dekodierte Zeichenkette.
string = st.del ( string, long position, long amount )
removes amount characters on position from String and supply the Result as String back.
del
string = st.encode64 ( string )
Return Value: Base64-Kodierte Zeichenkette.
string = st.in that ( string , string Insert , long position )
Return Value: Eingefügter string Insert in string on long position.
string = st.len ( string )
Return Value: Number of characters in the string.
length
string = st.lower ( string )
Return Value: Großbuchstaben in String transformed in small letters.
string = st.md5 ( string )
Return Value: MD5-amount of Content in string.
string = st.mid ( string , long Startposition , long AnzahlZeichen )
Return: Teilstring from string ex long Startposition long AnzahlZeichen.
long = st.ord ( string )
See: ord
long = st.pos ( string , string Search [, long Startposition ] )
Return Value: position of string Search in string.
string = st.replace ( string, string Search , string substitute [, bool repeat ] )
any Vorkommen of string Search in string substitute supplant.
str_replace, translate
string = st.sha1 ( string )
Return Value: SHA1-amount of Content in string.
string = st.sha256 ( string )
Return Value: SHA267-amount of String
string = st.shuffle ( string )
Return Value: characters in string random vermischt.
string = st.trim ( string )
Return Value: Führende and abschließende Freizeichen from string removes.
string = st.upper( string )
Return Value: lower case in String transformed in large letters.
{null|long|string}=time([{long mode[,long Unixtime]|String date}])
without Parameter:
time, date, gettickcount
string = trim ( string )
removes space at the beginning and end the Strings.
trim
Kontrollstruktur
break
prompted sofortiges leave the actually Loop.
case circumstance/argument : instruction
with case can one Programmzweig einzeilig definiert go, the only carryed out becomes, if The circumstance erfüllt or. the Result of argument positively is.
continue
lead immediate to that next Schleifendurchlauf.
if circumstance/argument
with if, elseif, else and endif can Programmzweige definiert go, The only carryed out go, if The circumstance erfüllt or. the Result of argument positively is.
terms, Verzweigungen, Programmzweige
while [ circumstance/argument ]Â
While launch a (unending-) Loop, The with break and continue beeinflussbar is. Optional can Parameter circumstance/argument apply go, the for each Durchlauf true his must.
Loop
Sprachelement
end ( [ long Exitcode ] )
exits the program tidy on place and place, or, if optional Exitcode indicated, terminiert the program messy with Exitcode.
end, exit, terminate
Variablenbezeichner of global variables define:
or:
include Dateiname [,...
Statisches Inkludieren: Inkludiert a View source-File on place and place the Include-Befehles. Ermöglich likewise the Inkludieren of Procs in Procs.
proc name( [ Parameter, [ ...
Definiert a procedure/ namens name and your (optionalen) Parameter The names the variables.
Procedures, functions
return [{ zero | bool | long | float | string | aray | proc }]
exits whom term of/ one procedure (Proc) or the Hauptprogrammes and - optional - supply whom angegebenen worth back.
return