I'm trying to figure out how to determine the amount of diskspace used by a
number of files. What I did was use the Long Files to get my list, loop
through that list adding item 2 and item 3 of each line together (MacOS, so
item 2 is the size of the data fork and item 3 is the size of the
As an example, i have a folder that my stack reports back as 726,510,022
bytes (this is correct). divide that by 1024 and i get 709,482KB
this is correct, but when you say
or roughly 709.5MB.
you are just dividing by 1000 at this point.. if you were to further divide by 1024,
you'd end up
You can do something like this now: check out the split command:
-- split, it, access some large line numbers real fast, and combine it again.
split myVariable by return
put something into myVariable[5467]
...
combine myVariable using return
Re: Text manipulation - underlying data structures
At 4:17 pm +0200 17/5/02, Terry Vogelaar wrote:
I need to do calculations with sets of 3 cards in a stack. It seems wise to
me to copy the data into an array first and then repeat through the array
instead of through the stack. But it still is a terribly slow script. Are
there any suggestions to
on 17/5/02 5:28 PM, Karl Petersen at [EMAIL PROTECTED] wrote:
It's possible to do the same with a script that uses fixed-length
numbers to store the start-of-line positions in an index. If all
index numbers are the same length, a script can easily calculate the
location of any index member,
I'm trying to understand the Switch/Case structure and having a hard
time.
Let's say I've got a value in myVar that could be anything from 1 to 3.
I want to call a handler specific to that value and not any other
handler after that. Let's say doOne, doTwo, doThree. According to
how I
switch (myVar)
case 1
doOne
break
case 2
doTwo
break
case 3
doThree
break
end switch
When I do this in my handler, the switch and case lines are aligned
rather than indented so I've probably pooched something. Any ideas?
What happens if you remove the parenthesis from myVar?
My switch and case lines have always been aligned, I just never let it
bother me. :-)
Actually, I noted this behavior a couple of years ago and thought it was odd
(i.e. different from C), but this is just the way switch statements are
displayed in this language, so don't worry about it, you
Barry,
It should actually read:
switch (myVar)
case 1
doOne
break
case 2
doTwo
break
case 3
doThree
break
end switch
I get this when I type it into Rev 1.1.1 for Windows. Is your completely
flush left?
Ken Ray
Sons of Thunder Software
Email: [EMAIL PROTECTED]
Web Site: