Sorry i use 4D V16 on Windows.
I need to display a number in an array real displayed in a list box.
In column settings of the list box, if I do not insert anything in
Display number format, the decimal numbers are correctly displayed, but
I have 0 instead of blank.
Thanks
Ferdinando
Il 05/08/19 21:00, [email protected] ha scritto:
Message: 3
Date: Mon, 5 Aug 2019 11:48:46 -0400
From: Chuck Miller<[email protected]>
To: 4DTechList Tech<[email protected]>
Subject: Re: FORMAT NUMBER
Message-ID:
<[email protected]>
Content-Type: text/plain; charset=utf-8
First of all. what version of 4D
I would think you can not do all you want with a number. You could do it with a
text variable
for example
in the in display detail form event
If $YourNumber_R (is a real)
$YourNumber_R:= 100.5
$YourText:=string($YourNumber_R;”###.0”)
$YourNumber_R:= 100.52
$YourText:=string($YourNumber_R;”###.00”)
$YourNumber_R:= 0
$YourText:=“”
hope this helps
If do not think you cab change the format of a field during the display of it
on a list box
Regards
Chuck
-----------------------------------------------------------------------------------------------
Chuck Miller Voice: (617) 739-0306
Informed Solutions, Inc. Fax: (617) 232-1064
mailto:cjmiller<AT SIGN>informed-solutions.com
Brookline, MA 02446 USA Registered 4D Developer
Providers of 4D and Sybase connectivity
http://www.informed-solutions.com
**********************************************************************
4D Internet Users Group (4D iNUG)
Archive: http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub: mailto:[email protected]
**********************************************************************