Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.pascal.borland    |    Borland Pascal was actually pretty neat    |    2,978 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 2,814 of 2,978    |
|    delo to All    |
|    Re: Arrays of Strings - problem    |
|    07 Sep 10 11:07:00    |
      e0d61fb5       From: delolabsNOSPAM@REMOVElibero.it              >snip              why you need an array of strings? probably something of untold...       if the need is only summarize the third field just use a large type a just       totalize in it       to isolate the third field you can use the pos function (unsure about it in       fp) searching for a ','       unfortunately the pos function doesnt have a start position ( like basic) so       you can simply delete the part of string to the first ',' then delete to the       second ',' when you find the third ',' then copy the chars from 1 to       position-1 and you have the third field, other consideration about lead or       trail blanks.              another kind of solution is scan the string char by char use the s[i] syntax       (tp) from 1 to the lentgh of string accumulate chars in a temp string then       put the temp string in one of array element when you reach a ',' then       increment an index and proceede (if you want extract all the fields).              long live to pascal - every kind of pascal       bye       delo              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca