J
|
Jane 4/22/2008 |
Hi, if ($values["FieldName"]) { $values["FieldName"] = str_replace(",","",$values["FieldName"]); } |
S
|
spintz author 4/22/2008 |
Thanks Jane. However, my question is more of a concern as to why the regional settings are there if they are not being followed? |
J
|
Jane 4/22/2008 |
Hi, |
S
|
spintz author 4/22/2008 |
Could you tell me where PHPR handles this? The database does not do it, and I can't find where PHPR does it. Rather than putting in hacks and doing double work, I'd rather just fix the process to work for my needs. |
![]() |
Alexey admin 4/23/2008 |
Hi, $strvalue = (string)$value; $strvalue = str_replace(",",".",$strvalue); if(is_numeric($strvalue)) $value=$strvalue; else $value=0; |
S
|
spintz author 4/23/2008 |
Fantastic, thank you. This way I can change that code to replace the , with nothing. It would also be great if this was made an option (or even dependent on the Regional Settings). |
J
|
Jane 4/23/2008 |
And to verify, inside that function, the call to 'NeedQuotes' will return true for any kind of text field, correct?
|