New topic: ith value of array returned by function
<http://forums.realsoftware.com/viewtopic.php?t=46028> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message JimPitchford Post subject: ith value of array returned by functionPosted: Fri Nov 23, 2012 12:07 pm Joined: Mon Apr 11, 2011 2:01 pm Posts: 117 I'm having a senior moment... I have a function that returns an array, in lieu of being able to do a calculated property for an array. I can get some functions to work with the result, eg get_array.ubound, get_array.insert etc, but I cannot get the ith element of the array as in get_array(i). The work around would seem to be to do it in 2 steps - i.e. dim a() as integer = get_array item = a(i) rather than the preferred: item = get_array(i) Is that right, or is there a neater way? Jim _________________ Jim OSX 10.8.1, rb2012r1 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]
