New topic: Changing values of vars passed as a paramarray
<http://forums.realsoftware.com/viewtopic.php?t=47177> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message wedgesan Post subject: Changing values of vars passed as a paramarrayPosted: Wed Mar 06, 2013 4:39 am Joined: Wed Mar 06, 2013 4:25 am Posts: 1 Hello to all of you. I'm new in the Real Software community, and still learning how to get the best of it. While reading about databases and recordsets, I've written a Method quite similar to this: Method SQLExec (SQL as string, paramarray a as variant) SQL is select sentence, something like "select person_id, first_name, secon_name from persons where person_id = '01'" The purpose of this method is to assign the values of the fields to a number of variables. Because the select sentence passed as the SQL parameter can retrieve any number of fields, I thought I could include these variables as a paramarray. The problem is that "Paramarray" and "ByRef" cannot be used together, so no matter what happens inside this method, outside its scope, this vars keep its original values. Have any of you had tried something similar, and has found a workable workaround? Any kind of help will be much appreciated. Thank you very much 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]
