-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how can I use variable in this function? #1
Comments
Hi, jrnreg. AHK has two very different ways of using variables; they don't mix, as it looks like you're trying to do. Try preparing your strings before passing them to a function, that way, you can use a msgbox to verify the value being passed to the function. E.g: query = |
It's work!!! |
Hi,VxE,I can't use "*" in query, connection_string :=
("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=.\Database1.mdb")
query =
(
SELECT name, number
FROM phonenumber
WHERE ab LIKE "*WL*";
)
MsgBox %query% ; verify
result := ADOSQL( connection_string ";coldelim= `t", query )
msgbox %result%
return |
jrnreg ' rather than " in your LIKE? |
WHERE ab LIKE '%WL%' work.thank you. |
hi, VxE,thank you for your function.
how can I use variable in this function?
Gui, Add, Edit, x66 y47 w140 h30 vEdit1 gChange, type here
Change:
Gui, Submit,NoHide
msgbox,% ADOSQL( connection_string ";coldelim= `t", "
(
SELECT name, number
FROM phonenumber.csv
WHERE ab LIKE '%'+%edit1%+'%'
)")
it doesn't work,can you help me?
The text was updated successfully, but these errors were encountered: