16 May 20:37
Re: Load Record Error - V11
From: Jason Hect <jhect@...>
Subject: Re: Load Record Error - V11
Newsgroups: gmane.comp.lang.inug-4d.tech
Date: 2008-05-16 18:37:42 GMT
Subject: Re: Load Record Error - V11
Newsgroups: gmane.comp.lang.inug-4d.tech
Date: 2008-05-16 18:37:42 GMT
It's just that in 2004 and previous I didn't have to worry about it. So do I need to always check to make sure there is a record in the current selection before calling load record? (I guess so) Chuck Miller-2 wrote: > > Once you delete a record, there is nothing to load. This has always > been true > > Regards > > > Chuck > On May 16, 2008, at 2:08 PM, Jason Hect wrote: >> This will work OK in 4D 2004, but the Load Record command causes an >> error in V11. It's actually just the last 2 lines that cause the >> problem, I'm just creating a record so I can delete it. :) >> >> CREATE RECORD([Test_Data]) >> SAVE RECORD([Test_Data]) >> DELETE RECORD([Test_Data]) >> LOAD RECORD([Test_Data]) >> >> >> Where I run into this problem is when changing read write access to >> a table. I have a method to control this, which unloads any >> records, changes read write access, and then reloads the record. >> In my code I do something like this: >> >> Query([Test_Data];[Test_Data]ID=123)`Find a record >> D_Access(True;->[Test_Data]) `Call method to get read write access >> to table >> DELETE RECORD([Test_Data]) >> D_Access(False;->[Test_Data]) `Call method to set read only access >> to table, which will unload record, change access, and reload >> causing error. >> > > > ------------------------------------------------------------------------ > --- > Chuck Miller Voice: (617) 739-0306 > Informed Solutions, Inc. Fax: (617) 232-1064 > ------------------------------------------------------------------------ > ---- > > > > ********************************************************************** > The 4D v11 SQL Roadshow - coming to a city near you! > http://www.4D.com/roadshow/index.html > > 4th Dimension Internet Users Group (4D iNUG) > FAQ: http://www.4d.com/support/faqnug.html > Archive: http://dir.gmane.org/gmane.comp.lang.inug-4d.tech > Unsub: mailto:4D_Tech-Unsubscribe@... > Post: mailto:4d_tech@... > Options: https://lists.4d.com/mailman/listinfo/4d_tech > ********************************************************************** > > -- -- View this message in context: http://www.nabble.com/Load-Record-Error---V11-tp17280873p17281499.html Sent from the 4D Tech mailing list archive at Nabble.com. ********************************************************************** The 4D v11 SQL Roadshow - coming to a city near you! http://www.4D.com/roadshow/index.html 4th Dimension Internet Users Group (4D iNUG) FAQ: http://www.4d.com/support/faqnug.html Archive: http://dir.gmane.org/gmane.comp.lang.inug-4d.tech Unsub: mailto:4D_Tech-Unsubscribe@... Post: mailto:4d_tech@... Options: https://lists.4d.com/mailman/listinfo/4d_tech **********************************************************************
RSS Feed