BASIC 256 - Language Documentation
http://doc.basic256.org/
2010-11-26T08:43:39-07:00BASIC 256 - Language Documentation
http://doc.basic256.org/
http://doc.basic256.org/lib/images/favicon.icotext/html2010-11-10T20:59:37-07:00adminstart
http://doc.basic256.org/doku.php?id=start&rev=1289447977&do=diff
BASIC-256 Language Documentation
Choose documentation language/Выберите документация язык/Wählen Sie Dokumentation Sprache/Choisissez la langue de documentation
[BASIC 256 - Newton Ball]
[en]English [ru]Русский [de]German [fr]Frenchtext/html2010-10-29T05:03:47-07:00renejmen:imgsave
http://doc.basic256.org/doku.php?id=en:imgsave&rev=1288353827&do=diff
ImgSave
Format
imgsave filename
imgsave filename, type
imgsave ( filename )
imgsave ( filename, type )
Description
Save the current Graphics Output Window to an image file.
By default the image is saved as a Portable Networks Graphics (PNG) file. You may optionally specify the image type as a “BMP”, “JPG”, “JPEG”, or “PNG”.text/html2010-10-21T10:24:50-07:00gaellefr:dim
http://doc.basic256.org/doku.php?id=fr:dim&rev=1287681890&do=diff
Dim
Format
dim numericvariable ( integer )
dim stringvariable$ ( integer )
dim numericvariable ( rows , columns )
dim stringvariable$ ( rows , columns )
Description
Retourne un nouveau tableau à 1 dimension de longueur integer ou à 2 dimensions qui peut être adressé par row et column. Selon l'assignation de la variable, un tableau numérique ou de chaînes de caractères est créé.
Le premier élément d'un tableau a l'index 0 (zéro). Les index allant ainsi de 0 à {longueur}-1.text/html2010-10-21T10:11:11-07:00gaellefr:degrees
http://doc.basic256.org/doku.php?id=fr:degrees&rev=1287681071&do=diff
Degrees
Format
degrees ( expression )
Description
Convertis un angle en radians en degrés.
Voir aussi
Acos, Asin, Atan, Cos, Radians, Sin, Tantext/html2010-10-21T10:09:42-07:00gaellefr:decimal
http://doc.basic256.org/doku.php?id=fr:decimal&rev=1287680982&do=diff
Decimal
Format
decimal ( expression )
decimal expression
Description
Définie le nombre maximal de décimales (0-16) à convertir quand un nombre à virgule flottante est transformé en chaîne de caractères.
Cela ne change pas la précision interne des calculs numériques mais seulement la manière dont ils sont affichés ou enregistrés comme chaîne.
Par défaut, 6 chiffres après la virgule seront affichés.text/html2010-10-21T10:00:54-07:00gaellefr:dbopen
http://doc.basic256.org/doku.php?id=fr:dbopen&rev=1287680454&do=diff
DBOpen
Format
dbopen SQLiteFile
dbopen ( SQLiteFile )
Description
Ouvre un fichier de base de données SQLite. Si le fichier n'existe pas, il est créé.
Exemple
#database foo - crée une base de données, peuple une table, ouvre un enregistrement et lit les données de la table.
# crée un nouveau fichier de base de données ou l'ouvre
dbopen "dbtest.sqlite3"
# efface l'ancienne foo table - renvoie une erreur si c'est une nouvelle base de données
onerror errortrap
dbexecute "drop table foo;"
…text/html2010-10-17T14:21:51-07:00renejmen:imgload
http://doc.basic256.org/doku.php?id=en:imgload&rev=1287350511&do=diff
Imgload
Format
imgload x, y, filename
imgload x, y, scale, filename
imgload x, y, scale, rotation, filename
Description
Load an image or picture from a file and paint it on the Graphics Output Window.
The parameters x and y represent the location on the screen for the CENTER of the loaded image. This behaviour is different than all of the other graphics statements. The axis of rotation will also be this CENTER point.\\The Imgload starement will read in most common image file formats inc…text/html2010-10-17T14:13:56-07:00renejmen:start
http://doc.basic256.org/doku.php?id=en:start&rev=1287350036&do=diff
BASIC-256 Syntax Reference 0.9.6.45
* Program Syntax
* Numeric Constants
* String Constants
* Variables
* Arrays
* Anonymous Arrays
* Operators
* Error Codes
Statements and Functions - Alphabetic
* Abs, Acos, Asc, Asin, Atan
* Ceil, Changedir, Chr, Circle, Clickb, Clickclear, Clickx, Clicky, Clg, Close, Cls, Color, Cos, Currentdir
* Day, DBClose, DBCloseSet, DBExecute, DBFloat, DBInt, DBOpen, DBOpenSet, DBRow, DBString, Decimal, Degrees, Dim, Do / Until
* End, Eof, …text/html2010-09-26T22:31:15-07:00morozko77ru:ceil
http://doc.basic256.org/doku.php?id=ru:ceil&rev=1285565475&do=diff
Ceil
Формат
ceil ( выражение )
Описание
Возвращает наибольшее целое число, которое больше или равно выражению
Смотри также
Floor
Пример
print ceil(9.1)
print ceil(-5.4)