Here it is straight out of the lesson PDF:
Code: Select all
put " WHERE firstname LIKE '%" & tSearchText & "%' OR lastname LIKE '%" & tSearchText & "%'" after tSQLQuery
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Code: Select all
put " WHERE firstname LIKE '%" & tSearchText & "%' OR lastname LIKE '%" & tSearchText & "%'" after tSQLQuery
Code: Select all
put " WHERE firstname LIKE '%" & tSearchText & "%' OR lastname LIKE '%" & tSearchText & "%'"
Code: Select all
WHERE firstname LIKE '%whatever tSearchText contains goes here%' OR lastname LIke '%tSearchText conents here%'
Copy/paste not required, so it would also help in this instance. As I remember from HyperCard, simply telling LC to "put X" without a target will pop the result into the message box automatically. I will often stick a "put…" line temporarily into a script just to see what's going on, as the other poster suggested in this case. I realize there are other tools for debugging, but this is quick and easy.walkerl26 wrote:Copy & Pasting the command into the message-box is clever, though: would have let me test the query-building command in isolation, before the actual script was fully functional...