Talk:SqlDBHowto
From Free Pascal wiki
Jump to navigationJump to search
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)