Re: Numeric formatting of controls

From: [at]} <Wojtek>
Date: Tue, 8 Jun 2004 13:06:16 -0400 (EDT)

----boundary-LibPST-iamunique-284286960_-_-
Content-type: text/plain

Dear Rene and Robert:

I somehow missed both the original message from Robert as well as the
fact that "level" can be used to control the formatting of numerical
strings. Contrary to what Rene said, this feature is documented in
the chapter on Forms. I never read this chapter till the end because
it is written like a tutorial and I never had patience to read it all.
The relevant information is listed about 2/3 into the tutorial.

level > 0: exponential format (scientific) with at least level digits in
           the exponent.
level = 0: fixpoint or floatingpoint format, depending on x.
level < 0: fixpoint format with -level digits after the decimal point.

This is exactly what was needed to make my forms look tidy.

Thank you both for the info.

Wojtek


On Mon, 7 Jun 2004, Prof. Rene J. Dorta Franceschi wrote:

> Campbell, Robert D (UK Edinburgh) escritos:
>
> >>> Hi:
> >>>

> >>> is there a simple way to format numerical strings displayed
> >>> in Text Fields?
> >
> > Yes - put in a negative 'Level' for fixed point, a positive level
> > for scientific notation..
> >
>
> level = -1: That was great! (as all undocumented features used to be!).
> Cheers, René Dorta. Venezuela.
>
>

--------------------------------------------

To unsubscribe from this mailing list, send a message containing the word "unsubscribe" to:
   blackbox-request{([at]})nowhere.xy

To get a list of valid e-mail commands and instructions on their usage, send a message containing the word "help" to the above address.

Send any problem reports or questions related to this email list to the list owner at
   owner-blackbox{([at]})nowhere.xy

Current posting policy:

a) To post you should use the same address by which you are subscribed to the mailing list. That way, the list server will recognize you as subscriber and forward your posting immediately, without creating any overhead.

b) If, for some reason, you cannot post from the address, by which you are subscribed, your message will be moderated to avoid spam. Please understand that moderation will often cause some delay, in particular over weekends or holydays.



----boundary-LibPST-iamunique-284286960_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"

e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzc1xmY2hhcnNldDAgQXJpYWw7fQ0Ke1xmMVxmbW9kZXJ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GljaCB5b3UgYXJlIHN1YnNjcmliZWQsIHlvdXIgbWVzc2FnZSB3aWxsIGJl
IG1vZGVyYXRlZCB0byBhdm9pZCBzcGFtLiBQbGVhc2UgdW5kZXJzdGFuZCB0aGF0IG1vZGVyYXRp
b24gd2lsbCBvZnRlbiBjYXVzZSBzb21lIGRlbGF5LCBpbiBwYXJ0aWN1bGFyIG92ZXIgd2Vla2Vu
ZHMgb3IgaG9seWRheX19AG51B4AtBRBjB0AeoA=


----boundary-LibPST-iamunique-284286960_-_---
Received on Tue Jun 08 2004 - 19:06:16 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:28:43 UTC