From john.convey at sci-do.co.uk Mon Jan 7 09:08:38 2008 From: john.convey at sci-do.co.uk (john convey) Date: Mon, 7 Jan 2008 09:08:38 +0000 Subject: [4DLUG] [off] Betamax, VHS or Blu-ray sir? Message-ID: <096EF56A-8078-4043-ABD1-D85219C7ED9B@sci-do.co.uk> There is a thin connection to 4D as we do need to keep abreast with IT formats :) Years ago I remember being in the WHV test bay looking up at a bank of screens, the ones on one side output from the lightweight relatively small betamax tapes looked good images the other screen from the VHS tapes looked not so good. This has now gone done in IT history and the feeling was that large corporations would ensure there was no more major 'format wars' A had a feeling of Deja vu in the Virgin mega store before Christmas looking at a screen ( showing Oceans whatever) and the Blu-ray notices on some of the videos...... report in press today A decision late last week by Warner Bros to release high-definition DVDs only in Sony?s Blu-ray format would turn out to be the tipping point in the ?format war? that has divided the consumer electronics industry, according to analysts. as an aside someone kindly is getting me the Simpsons movie but there is a huge difference in price in the shops Woolworths/ASDA ?8-9? but some in HD format at ?29 What am i getting extra in HD? can Homer, a line cartoon really look better in HD ? ..... and am i getting a format that is already defunct? John C -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.4dlug.org.uk/pipermail/list/attachments/20080107/d4d73086/attachment.html From matthew at 4dlug.org.uk Thu Jan 24 20:43:20 2008 From: matthew at 4dlug.org.uk (Matthew at 4D LUG) Date: Thu, 24 Jan 2008 20:43:20 +0000 Subject: [4DLUG] Execute SQL String Message-ID: <7FB2490A-02CB-4086-88CD-BB50E46F631C@4dlug.org.uk> Sorry if this has already been covered on the iNUG, I checked the archives but haven't found anything. Hopefully I'm missing something, cos I can't find a way to just execute some SQL code in 4D from a text variable/field/whatever. I want to make a SQL test interface where I can type in some SQL and have the result show up in a listbox. This should be possible by appending 'INTO myListBox' to the end of the SQL, and 4D will apparently put as many columns in my listbox as I need. However... I can't seem to do it. Using Begin SQL and End SQL, it seems I can insert variables into the SQL, but only into WHERE and INTO clauses, not SELECT and FROM. And I can't just take a whole SQL query in a variable and run it. This puts a bit of a damper on doing some very generic SQL handling routines that I had in mind. Can anyone enlighten me? TIA, M From john.convey at sci-do.co.uk Wed Jan 30 11:55:13 2008 From: john.convey at sci-do.co.uk (john convey) Date: Wed, 30 Jan 2008 11:55:13 +0000 Subject: [4DLUG] Execute SQL String In-Reply-To: <7FB2490A-02CB-4086-88CD-BB50E46F631C@4dlug.org.uk> References: <7FB2490A-02CB-4086-88CD-BB50E46F631C@4dlug.org.uk> Message-ID: <8E0AB32A-5E6B-44A7-9538-3B267496970D@sci-do.co.uk> I don't recall any demonstration of that at the summit. the 'begin SQL' and 'end SQL' tags seem to be directions to the 4d compiler to execute the '4d SQL commands' between them and they are then sent to the new SQL engine part of 4d. Perhaps this needs to be a feature request ? john On 24 Jan 2008, at 20:43, Matthew at 4D LUG wrote: > Sorry if this has already been covered on the iNUG, I checked the > archives but haven't found anything. > > Hopefully I'm missing something, cos I can't find a way to just > execute some SQL code in 4D from a text variable/field/whatever. > > I want to make a SQL test interface where I can type in some SQL > and have the result show up in a listbox. This should be possible > by appending 'INTO myListBox' to the end of the SQL, and 4D will > apparently put as many columns in my listbox as I need. > > However... I can't seem to do it. Using Begin SQL and End SQL, it > seems I can insert variables into the SQL, but only into WHERE and > INTO clauses, not SELECT and FROM. And I can't just take a whole > SQL query in a variable and run it. This puts a bit of a damper on > doing some very generic SQL handling routines that I had in mind. > > Can anyone enlighten me? > > TIA, M > _______________________________________________ > Next 4D London User Group Meetings: > > > 4d Summit Memphis Tennessee > 16-19th October > http://www.4d.com/summit/index.html > > 4d LUG dates--------------- > Monday December 3rd 2007 Christmas Party > Monday March 3rd 2008 > Monday June 2nd 2008 > Monday September 1st 2008 > ---------------------------------------- > > http://www.lmug.org.uk/ > > list mailing list > list at 4dlug.org.uk > http://lists.4dlug.org.uk/mailman/listinfo/list From lisa at anotherdimension.co.uk Thu Jan 31 14:02:48 2008 From: lisa at anotherdimension.co.uk (Lisa Pollard) Date: Thu, 31 Jan 2008 14:02:48 +0000 Subject: [4DLUG] Execute SQL String In-Reply-To: <7FB2490A-02CB-4086-88CD-BB50E46F631C@4dlug.org.uk> References: <7FB2490A-02CB-4086-88CD-BB50E46F631C@4dlug.org.uk> Message-ID: <84F419EF-0F58-4F1C-85FB-AAE19F0D8F7C@anotherdimension.co.uk> Hi Matthew, Yes, you should be able to do this. I can't think what your problem may be here. My knowledge is slight and I can't find my notes from the 4D v11 course last December (Doh!) where we covered this feature. I have had a look through the 4D v11 The Missing Manual but can't find why you shouldn't be able to do this. Are you getting an error message - or does it just not work? Snippet your code and lets have a butchers. cheers Lisa On 24 Jan 2008, at 20:43, Matthew at 4D LUG wrote: > Sorry if this has already been covered on the iNUG, I checked the > archives but haven't found anything. > > Hopefully I'm missing something, cos I can't find a way to just > execute some SQL code in 4D from a text variable/field/whatever. > > I want to make a SQL test interface where I can type in some SQL > and have the result show up in a listbox. This should be possible > by appending 'INTO myListBox' to the end of the SQL, and 4D will > apparently put as many columns in my listbox as I need. > > However... I can't seem to do it. Using Begin SQL and End SQL, it > seems I can insert variables into the SQL, but only into WHERE and > INTO clauses, not SELECT and FROM. And I can't just take a whole > SQL query in a variable and run it. This puts a bit of a damper on > doing some very generic SQL handling routines that I had in mind. > > Can anyone enlighten me? > > TIA, M > _______________________________________________ > Next 4D London User Group Meetings: > > > 4d Summit Memphis Tennessee > 16-19th October > http://www.4d.com/summit/index.html > > 4d LUG dates--------------- > Monday December 3rd 2007 Christmas Party > Monday March 3rd 2008 > Monday June 2nd 2008 > Monday September 1st 2008 > ---------------------------------------- > > http://www.lmug.org.uk/ > > list mailing list > list at 4dlug.org.uk > http://lists.4dlug.org.uk/mailman/listinfo/list cheers Lisa -- Lisa Pollard Software Developer Please note our new contact details: Another Dimension Ltd Needham Hall Barns Needham Street Gazeley, Newmarket Suffolk. CB8 8RR lisa at anotherdimension.co.uk Tel: +44 1638 554450 URL: http://www.anotherdimension.co.uk -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.4dlug.org.uk/pipermail/list/attachments/20080131/56936be5/attachment.html From matthew at 4dlug.org.uk Thu Jan 31 15:19:58 2008 From: matthew at 4dlug.org.uk (Matthew at 4D LUG) Date: Thu, 31 Jan 2008 15:19:58 +0000 Subject: [4DLUG] Execute SQL String In-Reply-To: <84F419EF-0F58-4F1C-85FB-AAE19F0D8F7C@anotherdimension.co.uk> References: <7FB2490A-02CB-4086-88CD-BB50E46F631C@4dlug.org.uk> <84F419EF-0F58-4F1C-85FB-AAE19F0D8F7C@anotherdimension.co.uk> Message-ID: <28355226-3C33-4633-9ADA-2F46D76455BB@4dlug.org.uk> On 31 Jan 2008, at 14:02, Lisa Pollard wrote: > Yes, you should be able to do this. > I can't think what your problem may be here. My knowledge is slight > and I can't find my notes from the 4D v11 course last December > (Doh!) where we covered this feature. Got a message from Kevin yesterday, that hit the nail on the head, although I (only!) just beat him to the same answer >> Sounds like you need the "Execute Immediate" command. This works as expected. Eg build total SQL query in 4D as $sql then after Begin SQL, we do EXECUTE IMMEDIATE :$sql. This wasn't obvious in the docs cos it's a SQL command, not a 4D one. Now if only I had 4D v11 Server to use it with... :( Cheers, M