Difference between revisions of "Gambas/reference"

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
Jump to navigation Jump to search
(operators -- partial listing; more doc links)
(→‎operators: assignment-with operators n/a in v1.0.18)
Line 13: Line 13:
 
* [http://gambasdoc.org/help/cat/assignop assignment operators]
 
* [http://gambasdoc.org/help/cat/assignop assignment operators]
 
** '''Variable = Expression''': Direct assignment
 
** '''Variable = Expression''': Direct assignment
** '''Variable += Expression''': Assignment with addition
+
** '''Variable += Expression''': Assignment with addition (not available in Gambas 1.0.18)
** '''Variable -= Expression''': Assignment with subtraction
+
** '''Variable -= Expression''': Assignment with subtraction (not available in Gambas 1.0.18)
** '''Variable *= Expression''': Assignment with multiplication
+
** '''Variable *= Expression''': Assignment with multiplication (the rest of these are probably also not available in v1.0.18)
 
** '''Variable /= Expression''': Assignment with division
 
** '''Variable /= Expression''': Assignment with division
 
** '''Variable \= Expression''': Assignment with integer division (V = V \ E)
 
** '''Variable \= Expression''': Assignment with integer division (V = V \ E)
Line 32: Line 32:
 
** '''String1 <= String2''': String1 is "lower than" or equal to String2?
 
** '''String1 <= String2''': String1 is "lower than" or equal to String2?
 
** '''String1 >= String2''': String1 is "greater than" or equal to String2?
 
** '''String1 >= String2''': String1 is "greater than" or equal to String2?
 +
 
==Libraries==
 
==Libraries==
 
* [[gb.db]]
 
* [[gb.db]]

Revision as of 21:37, 5 January 2008

Navigation

{{#lst:Gambas|navbar}}: reference

This page is a seed article. You can help HTYP water it: make a request to expand a given page and/or donate to help give us more writing-hours!

Functions

Function Groups

Language Elements

operators

  • arithmetic operations: page missing or moved
  • assignment operators
    • Variable = Expression: Direct assignment
    • Variable += Expression: Assignment with addition (not available in Gambas 1.0.18)
    • Variable -= Expression: Assignment with subtraction (not available in Gambas 1.0.18)
    • Variable *= Expression: Assignment with multiplication (the rest of these are probably also not available in v1.0.18)
    • Variable /= Expression: Assignment with division
    • Variable \= Expression: Assignment with integer division (V = V \ E)
    • Variable &= Expression: Assignment with string concatenation (V = V & E)
    • Variable &/= Expression: Assignment with path concatenation (V = V &/ E)
  • logical operators
  • string operators
    • String & String: concatenation of two strings
    • String &/ String: concatenation of two strings containing file path parts; add a path separator if neither is empty
    • String = String: strings are equal?
    • String == String: strings are equal? (case-insensitive)
    • String LIKE String: string matches a pattern?
    • String <> String: strings are different?
    • String1 < String2: String1 is "strictly lower" than String2?
    • String1 > String2: String1 is "strictly greater" than String2?
    • String1 <= String2: String1 is "lower than" or equal to String2?
    • String1 >= String2: String1 is "greater than" or equal to String2?

Libraries