• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: I want to convert a list of integers to their negative self
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: I want to convert a list of integers to their negative self


  • Subject: Re: I want to convert a list of integers to their negative self
  • From: Cesar Escolar <email@hidden>
  • Date: Sun, 03 Sep 2000 00:39:48 +0100

el 10/5/00 1:38 AM, Jacco Rens en email@hidden escribis:

> {"1", "3", "7", "", ""}


try with this:


set lista to {"1", "3", "7", "", "hola"}

repeat with i from 1 to (length of lista)
try
if item i of lista is not "" then ,
set item i of lista to (-(item i of lista) as integer) as string
end try
end repeat

return lista


if you wont "1"... as integers then delete as string in the set paragraph


  • Next by Date: Re: OSAX for mouse click?
  • Next by thread: Re: OSAX for mouse click?
  • Index(es):
    • Date
    • Thread