RE: Numeric formatting of controls

From: Campbell, Robert D (UK Edinburgh) <"Campbell,>
Date: Wed, 09 Jun 2004 09:27:01 +0100

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


>> > >>> is there a simple way to format numerical strings displayed
>> > >>> in Text Fields?

>> > > Yes - put in a negative 'Level' for fixed point ...

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


Wojtek, Rene

An extract from the Docu for CtlsRealField showing some of the
formatting options available. It has other advantages - see the Docu.


Also, for engineering or scientific applications, do look at CtlsUnitField.


"Some examples, with level = -6, and "Kill trailing '0's" not checked, are:

Fixed significant figs: unchecked unchecked checked checked
Max digits: unchecked checked unchecked checked
     Link = x
1.234567890123456E+10 12345678901.234560 1.23457E+10 12345678901.2 1.23457E+10
1.234567890123456E+9 1234567890.123456 1.23457E+9 1234567890.1 1.23457E+9
1.234567890123456E+8 123456789.012346 1.23457E+8 123456789.0 1.23457E+8
1.234567890123456E+7 12345678.901235 12345678.901235 12345678.9 12345678.9
1.234567890123456E+6 1234567.890123 1234567.890123 1234567.9 1234567.9
1.234567890123456E+5 123456.789012 123456.789012 123456.8 123456.8
1.234567890123456E+4 12345.678901 12345.678901 12345.7 12345.7
1.234567890123456E+3 1234.567890 1234.567890 1234.57 1234.57
1.234567890123456E+2 123.456789 123.456789 123.457 123.457
1.234567890123456E+1 12.345679 12.345679 12.3457 12.3457
1.234567890123456E+0 1.234568 1.234568 1.23457 1.23457
1.234567890123456E-1 0.123457 0.123457 0.123457 0.123457
1.234567890123456E-2 0.012346 0.012346 0.012346 0.012346
1.234567890123456E-3 0.001235 0.001235 0.00123457 0.001235
1.234567890123456E-4 0.000123 0.000123 0.000123457 0.000123
1.234567890123456E-5 0.000012 0.000012 0.0000123457 0.000012
1.234567890123456E-6 0.000001 0.000001 0.00000123457 0.000001
1.234567890123456E-7 0.000000 0.000000 0.000000123457 0.000000

Checking "Kill trailing '0's" changes this last example to:


1.234567890123456E-7 0. 0. 0.000000123457 0."


Robert

ps Wojtek - I haven't forgotten that other matter.

********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************
--------------------------------------------

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-1800051610_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"

e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwIFxwYXINCj4+ID4gPj4+ICAgaXMgdGhlcmUgYSBz
aW1wbGUgd2F5IHRvIGZvcm1hdCBudW1lcmljYWwgc3RyaW5ncyBkaXNwbGF5ZWRccGFyDQo+PiA+
ID4+PiBpbiBUZXh0IEZpZWxkcz9ccGFyDQpccGFyDQo+PiA+ID4gWWVzIC0gcHV0IGluIGEgbmVn
YXRpdmUgJ0xldmVsJyBmb3IgZml4ZW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NlbmQgYSBtZXNzYWdlIGNvbnRhaW5pbmcgdGhl
IHdvcmQgImhlbHAiIHRvIHRoZSBhYm92ZSBhZGRyZXNzLlxwYXINClxwYXINClNlbmQgYW55IHBy
b2JsZW0gcmVwb3J0cyBvciBxdWVzdGlvbnMgcmVsYXRlZCB0byB0aGlzIGVtYWlsIGxpc3QgdG8g
dGhlIGxpc3Qgb3duZXIgYXRccGFyDQogICBvd25lci1ibGFja2JveEBvYmVyb24uY2hccGFyDQpc
cGFyDQpDdXJyZW50IHBvc3RpbmcgcG9saWN5OlxwYXINClxwYXINCmEpIFRvIHBvc3QgeW91IHNo
b3VsZCB1c2UgdGhlIHNhbWUgYWRkcmVzcyBieSB3aGljaCB5b3UgYXJlIHN1YnNjcmliZWQgdG8g
dGhlIG1haWxpbmcgbGlzdC4gVGhhdCB3YXksIHRoZSBsaXN0IHNlcnZlciB3aWxsIHJlY29nbml6
ZSB5b3UgYXMgc3Vic2NyaWJlciBhbmQgZm9yd2FyZCB5b3VyIHBvc3RpbmcgaW1tZWRpYXRlbHks
IHdpdGhvdXQgY3JlYXRpbmcgYW55IG92ZXJoZWFkLlxwYXINClxwYXINCmIpIElmLCBmb3Igc29t
ZSByZWFzb24sIHlvdSBjYW5ub3QgcG9zdCBmcm9tIHRoZSBhZGRyZXNzLCBieSB3aGljaCB5b3Ug
YXJlIHN1YnNjcmliZWQsIHlvdXIgbWVzc2FnZSB3aWxsIGJlIG1vZGVyYXRlZCB0byBhdm9pZCBz
cGFtLiBQbGVhc2UgdW5kZXJzdGFuZCB0aGF0IG1vZGVyYXRpb24gd2lsbCBvZnRlbiBjYXVzZSBz
b21lIGRlbGF5LCBpbiBwYXJ0aWN1bGFyIG92ZXIgd2Vla2VuZHMgb3IgaG9seWRheX19ADQ1IChV
VEMpIEZJTA=


----boundary-LibPST-iamunique-1800051610_-_---
Received on Wed Jun 09 2004 - 10:27:01 UTC

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