Tengel
Posts: 49
|
| Posted: 10/06/2004, 3:42 PM |
|
Not sure how to do this, but my DB have Negative and posetive value.
Where Negative is South and Posetiv is North.
Anyway, in php it shows like this 5.08 but I want it to show 5.08N as it is a positiv number.
Have try to add rules in Data source but so far no luck.
Any that have a clue?
_________________
---
Tengel |
 |
 |
Tengel
Posts: 49
|
| Posted: 10/06/2004, 4:15 PM |
|
Should mention that I know you can add in properties format field like this 0.00N;0.00S this will make the north value like 5.08N but negative value would look like this -5.08S and I don't want that minus sign in front.

Any ideas?
_________________
---
Tengel |
 |
 |
Tengel
Posts: 49
|
| Posted: 10/06/2004, 6:32 PM |
|
One way to fix this was at this line
$this->z->Text = CCFormatNumber($this->z->GetValue(), Array(False, 2, ".", "", False, "", "S", 1, True, ""));
Add abs so the look like this
$this->z->Text = CCFormatNumber(abs($this->z->GetValue()), Array(False, 2, ".", "", False, "", "S", 1, True, ""));
But what I wonder now, is. Where can that abs be added, without going into the code?
_________________
---
Tengel |
 |
 |
Karsten
Posts: 57
|
| Posted: 10/08/2004, 4:56 PM |
|
hi tengel,
the format property thing is very complex, im sure
with some wierd line you can get rid of the minus, but dont ask me how
i have a friend he using msaccess format property(wich is similar to the one of CCS), he says, you can format in and out anything you want if you know how.
however, i think it must be some kind of replacing - with an empty space
i am sure if you search google you find out how to get rid of the minus by a formatstring
Karsten from germany
_________________
If one gives up, he told himself he failed. |
 |
 |
Tengel
Posts: 49
|
| Posted: 10/14/2004, 8:43 AM |
|
Hi Karsten
Thanks for the answer.
Anyway, to get rid of the minus, is to use the "ABS" code, as I mention above.
like in the GetValue part in the code.
($this->z->GetValue() if this get change to (abs($this->z->GetValue()) it will take away the minus.
What I did wonder, is, where can this been done in CodeCharge, if it is possible at all.
_________________
---
Tengel |
 |
 |
|