problem with array

Ken Ray kray at sonsothunder.com
Mon Aug 12 00:00:00 EDT 2002


Re: problem with arrayYves,

Suppose you don't use "split", but set the lineDelimeter and itemDelimiter accordingly. So you could say:

   set the lineDelimiter to "|"
   set the itemDelimiter to "\"
   put item 2 of line 3 of tData into tSolution

... or something like that. Will this work for you?

Ken Ray
Sons of Thunder Software
Email: kray at sonsothunder.com
Web site: http://www.sonsothunder.com/

  ----- Original Message ----- 
  From: Yves Coppé 
  To: use-revolution at lists.runrev.com 
  Sent: Sunday, August 11, 2002 9:21 AM
  Subject: Re: problem with array


    Yves,

    Can you be a bit more specific and give an example of what is in 'tData' and
    what you want to return?

    Ken Ray
    Sons of Thunder Software
    Email: kray at sonsothunder.com
    Web site: http://www.sonsothunder.com/




  tData is for example :


  12/05/2002
  \Motifs
  xxxx
  \Solution
  yyy
  \Proposition
  zzz|31/05/2002
  \Motifs
  xxxxxxxxx
  \Solution
  yyyyyyyy|




  so I write
  split tdata using "|" and "\"




  and I'd like to know f. ex." the solution of 31/05/2002"
  = record 2 (using "|")
   = item 2 (using "\")




  Cheers.
-- 

  Greetings.

  Yves COPPE

  Email : yvescoppe at skynet.be
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.runrev.com/pipermail/use-livecode/attachments/20020812/e79f568d/attachment.html>


More information about the use-livecode mailing list