New topic: referring to a database record
<http://forums.realsoftware.com/viewtopic.php?t=35653> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message Chris Benton Post subject: referring to a database recordPosted: Wed Sep 29, 2010 8:42 am Joined: Thu Jul 30, 2009 6:30 am Posts: 19 I am setting up a generic database write method that uses abstraction and polymorphism (or what ever you want to call it) to act as a "one size fits all" routine. I pass the table name and a list of optional field values to the method. When setting up the values for the DatabaseRecord, I need to refer to the fields as DatabaseRecord.FieldName(x)=Somevalue, where x would be a field counter, allowing the appropriate field to be loaded with passed data. The problem is that the Database Record object does not support a FieldName property despite the language reference indicating so. Am I missing something here? or is it a case of RTFM?? Regards, Chris Benton Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 1 post ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
