Home > comp > gb.db.mysql > _mysql > cbool 
  [3.0]
 fr de es it nl pl pt pt_BR mk sq ca ar fa vi ja ru zh zh_TW eo
Previous  Next  Edit  Rename  Undo  Refresh  Search  Administration  
Documentation
History
 
CBool
Converts any value into MySQL Boolean.

A value of zero is considered false. Non-zero values are considered true.

Value: Is the value to test.

Examples

Dim hCon As New Connection

With hCon
  .Type = "mysql"
  .Port = "3306"
  .Host = "localhost"
  .User = "root"
  .Password = "mypass"
  .Name = "Gambas"
  .Open()
End With

hCon.MySQL.Charset = "utf8"

Print hCon.MySQL.CBool(5)