• 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: as is what?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: as is what?


  • Subject: Re: as is what?
  • From: micro-people <email@hidden>
  • Date: Thu, 28 Aug 2003 20:33:02 +0900

ah!

then i did:

write (random number from 0 to 300) as text to f

but the editor say it cannot be converted to text

and with:

write (random number from 0 to 300) as string to f

things went okay

mmm..
now is the time to learn the difference between
"text" vs "string" ?

thanx

> >write (random number from 100 to 5000 as text) to fh
> ______________________________________________________________________
>
> I just glanced at this, but what jumped out at me is above.
>
> The line above isn't coercing the random number to text; it is coercing
> 5000 to text and then back into a number during the calculation.
>
> set rn to random number from 100 to 5000 as text
> set rnClass to class of rn
>
> set rn to (random number from 100 to 5000) as string
> set rnClass to class of rn
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: as is what? (From: Nigel Garvey <email@hidden>)
 >Re: as is what? (From: micro-people <email@hidden>)
 >Re: as is what? (From: Christopher Stone <email@hidden>)

  • Prev by Date: Re: as is what?
  • Next by Date: Copy folder and rename certain variables within folder names.
  • Previous by thread: Re: as is what?
  • Next by thread: Re: as is what?
  • Index(es):
    • Date
    • Thread