On Thu, Apr 12, 2012 at 4:50 PM, Michael Oke, II <[email protected]> wrote:
> "insert into food (FoodID,CategoryID,CompanyID,UserID,Name) values 
> (?lnFoodId,?lnCategoryId,?lnCompanyId,?lnUserId,?lcName)
>
> String is longer but that gives you the basics.
>

in direct mode the parameter values are within scope. In a pass thru,
(not sure) they might not be, thus they need to be evaluated first and
placed into the string before sending it along to SQL.

So your code might look something like:

"insert into food (FoodID,CategoryID,CompanyID,UserID,Name) values
(evaluate(?lnFoodId),evaluate(?lnCategoryId),evaluate(?lnCompanyId),evaluate(?lnUserId),evaluate(?lcName))


Just a WAG...

-- 
Matt Jarvis
Eugene, Oregon USA

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/capt54ryc1rq_2fyrcfbkjfefovqwcodg-_21ud+ahtu9llu...@mail.gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to