Difference between revisions of "Talk:SqlDBHowto"
From Free Pascal wiki
Jump to navigationJump to searchJohnSaltwell (talk | contribs) m |
(response: you're more than welcome to update the wiki article & please use the forums for questions) |
||
Line 1: | Line 1: | ||
+ | == John's question == | ||
Following the example here - specifically (Variable):= TSQLTransaction.Create; - doesn't work for me. I get a compile error "Wrong number of parameters". Unfortunately I can't at the moment find any other documentation to check the syntax, which is frustrating. | Following the example here - specifically (Variable):= TSQLTransaction.Create; - doesn't work for me. I get a compile error "Wrong number of parameters". Unfortunately I can't at the moment find any other documentation to check the syntax, which is frustrating. | ||
Edit: it seems we need to add the parameter (Nil) to TSQLTransaction.Create and TSQLQuery.Create. | Edit: it seems we need to add the parameter (Nil) to TSQLTransaction.Create and TSQLQuery.Create. | ||
+ | |||
+ | :Hi John, welcome to the wiki ;) | ||
+ | :Thanks for posting, but questions on the wiki are rarely looked at. You'd be better of asking on the forum. | ||
+ | :Having .Creates with an object as parameter is very common. You can use tools like ctrl-space (code completion), go to defintion (right click, go to defnition or something like ctrl-shift-up - can't remember) to find out what is expected. | ||
+ | :Also, corrections to the wiki are always welcome - please feel free! | ||
+ | :Thanks, | ||
+ | :--[[User:BigChimp|BigChimp]] 14:48, 6 April 2013 (UTC) |
Revision as of 16:48, 6 April 2013
John's question
Following the example here - specifically (Variable):= TSQLTransaction.Create; - doesn't work for me. I get a compile error "Wrong number of parameters". Unfortunately I can't at the moment find any other documentation to check the syntax, which is frustrating.
Edit: it seems we need to add the parameter (Nil) to TSQLTransaction.Create and TSQLQuery.Create.
- Hi John, welcome to the wiki ;)
- Thanks for posting, but questions on the wiki are rarely looked at. You'd be better of asking on the forum.
- Having .Creates with an object as parameter is very common. You can use tools like ctrl-space (code completion), go to defintion (right click, go to defnition or something like ctrl-shift-up - can't remember) to find out what is expected.
- Also, corrections to the wiki are always welcome - please feel free!
- Thanks,
- --BigChimp 14:48, 6 April 2013 (UTC)