In conjunction with my SkySVG project, some items that beg the question "Which is best?" Meaning, "best" from a speed and efficiency perspective.
1. Accessing character ranges lsRAh = lsInputLine.char[6..9] -OR- lsRAh = chars(lsInputLine, 6, 9) -OR- lsRAh = char 6 to 9 of lsInputLine 2. Returning two values from a function on plotFunc pfRAdeg, pfDEdeg -- calculations for lfPlotRA and lfPlotDE return point(lfPlotRA, lfPlotDE) end lpPlotRADE = plotFunc(lfRAdeg, lfDEdeg) lfPlotRA = lpPlotRADE.locH lfPlotDE = lpPlotRADE.locV -OR- on plotFunc pfRAdeg, pfDEdeg -- calculations for lfPlotRA and lfPlotDE return [lfPlotRA, lfPlotDE] end lpPlotRADE = plotFunc(lfRAdeg, lfDEdeg) lfPlotRA = lpPlotRADE[1] lfPlotDE = lpPlotRADE[2] -OR- on plotFunc pfRAdeg, pfDEdeg -- calculations for lfPlotRA and lfPlotDE return [#h: lfPlotRA, #v: lfPlotDE] end lpPlotRADE = plotFunc(lfRAdeg, lfDEdeg) lfPlotRA = lpPlotRADE.h -- or lpPlotRADE[#h] lfPlotDE = lpPlotRADE.v -- or lpPlotRADE[#v] Christopher Watson [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
