_MySQL.CBool (gb.mysql)
Function CBool ( Value As Variant ) As Integer
转换任意值为MySQL Boolean。
零值被认为是false(假),非零值被认为是true(真)。
Value: 用于测试的值。
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)