RE: Deleting a row from a query?

2003-01-21 Thread Tangorre, Michael
please decipher the message below into something meaningful. thank you. -Original Message- From: [EMAIL PROTECTED] [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 21, 2003 7:19 AM To: CF-Talk Subject: Deleting a row from a query? How funny the certified Macromedia

Re: Deleting a row from a query?

2003-01-21 Thread Samuel R. Neff
At 08:18 AM 1/21/2003, you wrote: How funny the certified Macromedia instuctor can't suggest a query of query, Go get a fuction? are you kidding? I'm your not my instuctor. Being able to solve a problem quickly and simply should be the goal here. I really don't think that's a fair complaint.

RE: Deleting a row from a query?

2003-01-21 Thread Robertson-Ravo, Neil (RX)
what are you talking about? did I miss something :-) -Original Message- From: [EMAIL PROTECTED] [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 21 January 2003 12:19 To: CF-Talk Subject: Deleting a row from a query? How funny the certified Macromedia instuctor can't suggest a query

Re: Deleting a row from a query?

2003-01-21 Thread Stephen Moretti
The question was How can I delete a row from a query? Answer, a query is a struct of associative arrays, find the array row and delete rows for each of the struct keys. Simon quite rightly pointed out that there is a UDF to do this on cflib, as I also had previously mentioned. How funny the

RE: Deleting a row from a query?

2003-01-20 Thread Dowdell, Jason G
and then delete that row from the structure but I'm not sure. ~Jason -Original Message- From: Bryan F. Hogan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 21, 2003 12:49 AM To: CF-Talk Subject: RE: Deleting a row from a query? CFQUERY NAME=DeleteMyRow DATASOURCE=#myDSN

Re: Deleting a row from a query?

2003-01-20 Thread Stephen Moretti
This is a bit of a wild guess... KeyRow = StructFind(YourQuery[PrimaryKey],YourValue); for (i=1;i=ListLen(YourQuery.ColumnList;i=i+1) { thisColumn = ListGetAt(YourQuery.ColumnList,i); StructDelete(YourQuery[thisColumn],KeyRow); } Basically, I'm treating a Query as a Struct. Finding the

Re: Deleting a row from a query?

2003-01-20 Thread Stephen Moretti
Nope... suppose you have a query in memory with 100 records in it. You want to delete record number 43 from the query and leave all of the other's in place. How would one go about doing this? I don't want to touch the database. I'm assuming the best way may be to copy the query to a

Re: Deleting a row from a query?

2003-01-20 Thread Stephen Moretti
head, so I've probably got something wrong somewhere, but hope it helps. Going home now... ;o) Regards Stephen - Original Message - From: Stephen Moretti [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, January 20, 2003 6:02 PM Subject: Re: Deleting a row from a query

RE: Deleting a row from a query?

2003-01-20 Thread Tony Weeg
monitoring, mapping reporting www.navtrak.net 410.548.2337 -Original Message- From: Stephen Moretti [mailto:[EMAIL PROTECTED]] Sent: Monday, January 20, 2003 1:20 PM To: CF-Talk Subject: Re: Deleting a row from a query? OK... See now, when I was writing the other email it occurred

Re: Deleting a row from a query?

2003-01-20 Thread ksuh
How about something like: cfquery name=qry1 datasource=myDB SELECT * FROM myTable /cfquery cfoutput query=qry1 #userID#br/ /cfoutput hr cfquery name=qry1 dbtype=query SELECT * FROM qry1 where userID != 'KSUH' /cfquery cfoutput query=qry1 #userID#br/

RE: Deleting a row from a query?

2003-01-20 Thread Simon Horwith
line) www.figleaf.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, January 20, 2003 14:06 To: CF-Talk Subject: Re: Deleting a row from a query? How about something like: cfquery name=qry1 datasource=myDB SELECT * FROM myTable

RE: Deleting a row from a query?

2003-01-20 Thread Dowdell, Jason G
way to delete rows from the query (when the user deletes content) and then rewrite the file in wddx format. ~Jason -Original Message- From: Simon Horwith [mailto:[EMAIL PROTECTED]] Sent: Monday, January 20, 2003 2:25 PM To: CF-Talk Subject: RE: Deleting a row from a query? I believe