• 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: ASCII problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ASCII problem


  • Subject: Re: ASCII problem
  • From: hciR nellA <email@hidden>
  • Date: Wed, 25 Apr 2001 17:39:08 -0800

this gives the same result as the VB code

set sccf to "19110027900059"
set temp2 to ""
repeat with i from 1 to (length of sccf) by 2
set chunk to (characters i thru (i + 1) of sccf) as string
if (chunk as integer) < 90 then
set temp2 to temp2 & ((ASCII character of ((chunk as integer) + 33)) as string)
else
set temp2 to temp2 & ((ASCII character of ((chunk as integer) + 71)) as string)
end if
end repeat



SCCF = 19110027900059
temp = SCCF
for i = 1 To Len(SCCF) / 2
chunk = left(temp, 2)
if val (chunk) < 90 then
temp2 = temp2 + chr(val(chunk) + 33)
else
temp2 = temp2 + chr(val(chunk) + 71)
end if
temp = right(temp, len(temp) - 2)
next i

hereby variable temp2 gets converted to ascii with an special program



- hcir
mailto:email@hidden
Made with a Mac!


References: 
 >ASCII problem (From: Jacco Rens <email@hidden>)

  • Prev by Date: Re: Screen Blanking-duh...
  • Next by Date: Re: How best to extract digits from a string?
  • Previous by thread: ASCII problem
  • Next by thread: Re: ASCII problem
  • Index(es):
    • Date
    • Thread