Fonction de classe. Remplacez la chaîne passée dans une expression après le mot clé Where dans l'instruction SQL:
Recherche de mots [par exemple: xiao ming]
Recherche de phrases
Chaque mot de la phrase sera récupéré
Par exemple: Xiaoqiang 1 surnom 1 xiaoqiang 1 xiaoqiang xiaoqiang
Recherche logique
Supports et / ou opérateurs.
Par exemple: Xiao Ming et Xiao Qiang et Xiao Qiang
Conditions composées:
Par exemple: (Xiao XiaoMing ou XiaoMing) et (Xiaoqiang ou Xiaoxiaoqiang)
Par exemple: (Xiao Xiaoming ou surnom) et Xiao Xiaoqiang
Par exemple: root1and (Guangdong ou Pékin)
-----------------------------------------------------------
La copie de code est la suivante:
ClassCreatEQuryString
Publicobjreg
PublicIntstart
Publicstrfield
Privateobjnode2
PrivatestrText
PublicProperTyletQuerystring (Strvalue)
strText = lCase (strvalue)
Endproperty
PRIVATESUBCLASS_INITIALIZE ()
SetObjreg = newRegexp
strfield = "(titre + article)"
Fin
PRIVATESUBCLASS_TERMINE ()
SetObjreg = rien
Fin
PublicDefaultFunctionGetText ()
Minlnres
Dimstrsky
Sansbjreg
.IgnoreCase = True
.Global = true
.Pattern = "/ s"
blnres = .test (strText)
Fin
Si (notblnres) alors
IntStart = 2
GetText = StrField & "Like '%" & StrText & "%'"
Autre