Code:
function c(s:string) :: object:
send {@c_console} to console
set {_c::*} to {_s} split at "//"
if {_c::1} is "mysql":
set {_c1} to mysql result of query "SELECT %{_c::3}% FROM %{_c::2}% WHERE %{_c::4}%='%{_c::5}%'"
if {_c::6} is "string":
set {_c2::*} to mysql string {_c::3} in {_c1}
else if {_c::6} is "object":
set {_c2::*} to mysql object {_c::3} in {_c1}
else if {_c::6} is "Boolean":
set {_c2::*} to mysql Boolean {_c::3} in {_c1}
else if {_c::6} is "number":
set {_c2::*} to mysql number {_c::3} in {_c1}
else if {_c::6} is "integer":
set {_c2::*} to mysql integer {_c::3} in {_c1}
else if {_c::6} is "integer":
set {_c2::*} to mysql integer {_c::3} in {_c1}
if {_c2::1} is set:
return {_c2::1}
return "none"
command /i:
trigger:
$ thread
set {_c0} to c("mysql//my//m1//name//xbxy//string")
send {_c0}
[doublepost=1519540913,1519540878][/doublepost]@LimeGlass
[doublepost=1519540966][/doublepost]If this code is no problem
Then he can asynchronous whole function?
[doublepost=1519541173][/doublepost]@Snow-Pyon