Info-Mac Archive Downloads: dev/card/ Hypercard

Back to dev/card/ Hypercard

NumStringer XFCN 1.0 (num-stringer-10-xfcn.hqx)

Download num-stringer-10-xfcn.hqx (9,158 KB)


From: j5rson@prairie.lakes.com (Jeffrey D. Iverson)
Subject: NumStringer XFCN 1.0

NumStringer is a function that takes two parameters. The first parameter
is a number that will be operated on. The second parameter is the number
of digits that the first number should occupy. If the first parameter
has fewer digits than the second parameter, the result will be the first
parameter padded with leading zeros to fill all the digits. If the first
parameter has more digits than the second parameter, the result will be
the first parameter. I've found this useful in applications where I
needed to serialize a set of documents and could simply append a number,
and still keep them in order.

Examples
NumStringer(999,4) -> 0999
NumStringer(1234,4) -> 1234
"Doc#" & NumStringer(99,3) -> Doc#099

Click on and/or examine the script of the button above to see how it
works!

This external is free for purely personal use. A license fee of $10.00
is required if you use this external in any "in-house" corporate,
shareware or freeware products. The license fee for unlimited commercial
use in a SINGLE "for sale" product is $25.00. The license fee for
unlimited commercial use with MULTIPLE products is $100.00.

Permission is hereby granted to all groups who distribute demo software,
either for profit (such as EduCorp) or not for profit (such as a
Macintosh Users Group), to include this file in their collection. My
goal is to get as much exposure for my products as possible, and I
believe that these groups offer an invaluable service to shareware
publishers like myself.

If you have questions or comments we can be reached through the
following:

Iverson Software Co. 507.625.7355
522 Record St. j5rson@prairie.lakes.com
Mankato MN 56001-2546 http://prairie.lakes.com/~j5rson/