Re: Variable in Dialog Doesn’t Honor Number Formatting

2019-05-17 Thread Sannyasin Siddhanathaswami via 4D_Tech
Thank you Miyako!

I changed the compatibility setting, but that didn’t help for this.

I then traced and found, as you suspected, that the variable was text. Makes 
sense, as it’s a enterable box. Declaring it properly fixed the issue.

Thanks!

Sannyasin Siddhanathaswami
On May 15, 2019, 7:13 PM -1000, Keisuke Miyako via 4D_Tech 
<4d_tech@lists.4d.com>, wrote:
how did you decide that the variable is numeric?

did you use C_REAL or C_LONGINT?

what does the debugger/runtime explorer say?

the value type in property list does not set the variable type except for form 
local variables.

https://doc.4d.com/4Dv17/4D/17.1/Variables.300-4179325.en.html

2019/05/16 13:27、Sannyasin Siddhanathaswami via 4D_Tech 
<4d_tech@lists.4d.com>のメール:
These are all numeric variables.


**
4D Internet Users Group (4D iNUG)
Archive: http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub: mailto:4d_tech-unsubscr...@lists.4d.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:4d_tech-unsubscr...@lists.4d.com
**

Re: Variable in Dialog Doesn’t Honor Number Formatting

2019-05-15 Thread Keisuke Miyako via 4D_Tech
how did you decide that the variable is numeric?

did you use C_REAL or C_LONGINT?

what does the debugger/runtime explorer say?

the value type in property list does not set the variable type except for form 
local variables.

https://doc.4d.com/4Dv17/4D/17.1/Variables.300-4179325.en.html

2019/05/16 13:27、Sannyasin Siddhanathaswami via 4D_Tech 
<4d_tech@lists.4d.com>のメール:
These are all numeric variables.


**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Variable in Dialog Doesn’t Honor Number Formatting

2019-05-15 Thread Keisuke Miyako via 4D_Tech
did you check:

Use period and comma as placeholders in numeric formats:

?

https://doc.4d.com/4Dv15/4D/15.6/Compatibility-page.300-3836777.en.html



**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Variable in Dialog Doesn’t Honor Number Formatting

2019-05-15 Thread Sannyasin Siddhanathaswami via 4D_Tech
Aloha,

Super weird issue. I’m trying to do a simple $ format in a variable on a 
dialog. Choosing a number format of "$###,##0.00” doesn’t display properly. I 
enter “50”, I get $0.50. Even when using this:
OBJECT SET FORMAT(*;"ShippingCost";"$###,##0.00”)

But in the same dialog, if I do the same code on a column of a list box, it 
works fine:
OBJECT SET FORMAT(*;"Column1";"$###,##0.00”)

Even on the same dialog, I have another variable that has a collection 
expression: “colAdjustData.sum(“ExtCost”)” and that displays properly with the 
same OBJECT SET FORMAT command.

I looked through all of the properties of this variable, but don’t see anything 
weird. Creating a new variable also doesn’t work. These are all numeric 
variables.

Any clues?


Sannyasin Siddhanathaswami
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**