TIP: Click on subject to list as thread! ANSI
echo: qedit
to: ALL
from: FREDERICK HOLMES
date: 1997-05-09 05:10:00
subject: Find n times, again ...

From: Frederick Holmes 
Editor.)
  Many thanks to G de B for findx().  Works perfectly.  And has
  all of the bells & whistles (error trapping, etc.) that a
  person like me would never figure out how to put in.  Or would
  struggle with endlessly.  Now for the next question.  In
  addition to a "normal" comma-delimited data base, I want to
  code (my "real" use) the
 
      {setv _mlabel,mset01,mset02,,,,, . . .
 
  function in {COMMO}'s COMMO.MAC where I need to get x or n (the
  number of times to find a comma on the line -- val(times) in
  the macro) as a translation of A=1, B=2, C=3, . . .   That's
  easily done in ones head for letters near the beginning of the
  alphabet, or at the end, but not for "q" for example.  I could
  stack 26 elseif's, but is there a function that does it
  "elegantly" in a couple of lines?
 
  Thanks in advance.
 
  Fred Holmes  fsholmes@cpcug.org
>> Qedit (Fidonet) > Qedit (Internet Mailing list)           >>
>> To post a message send to qedit@sawasdi.apana.org.au                    >>
>> For listserv information send an email to listserv@sawasdi.apana.org.au >>
---
---------------
* Origin: apana>>>>>fidonet [sawasdi.apana.org.au] (3:800/846.13)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.