help

Laura Brody laura at hvcomputer.com
Fri Nov 9 12:46:28 PST 2007


Quoting "Jay R. Ashworth" <jra at baylink.com>:

> On Fri, Nov 09, 2007 at 03:10:55PM -0500, Laura Brody wrote:
>> Quoting "Jay R. Ashworth" <jra at baylink.com>:
>> >
>> > There's no native method of dealing with base-36 numbers in filepro,
>>
>>   **BZZZZT** Wrong! Thanks for playing .....
>>
>> Page 32 of Laura's Quick Reference Guide for filePro v5.0 says:
>>
>>    v4.5 BASE() Returns the value of numb in the numeric base result_base
>> ("2"-"36")
>>     n=BASE(n,num_base,[result_base])
>>     The third parameter is optional, if omitted, the default is "10".
>
> So you can translate from your b-36 back to b-10, increment, and then
> translate back.  Nice.  Forgot that was in there.  Nice that it goes up
> to 36, too, and anyone who ever wondered why *that* limit?  This is why.

   I guess that I *could* have written BASE to go higher than 36
(using symbols in addition to 0-9 and A-Z), but I really didn't
see how anyone would need it. ZZZZZZZZ is a really big number.

-- 
Laura Brody
+------------- Hudson Valley Computer Associates, Inc ----------+
| PO Box 859 120 Sixth Street    http://www.hvcomputer.com      |
| Verplanck, NY 10596-0859       Voice mail: (914) 739-5004     |
+------ PC repair locally, filePro programming globally --------+


More information about the Filepro-list mailing list