realbasic-nug
[Top] [All Lists]

Re: Stupid number formatting error...

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Stupid number formatting error...
From: Norman Palardy <npalardy at great-white-software dot com>
Date: Thu, 28 Sep 2006 11:07:57 -0600
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <E6C777A4-A7A3-4B58-AE70-D25AEB853F53 at mobleybros dot com>

On Sep 28, 2006, at 11:01 AM, Phil M wrote:

When writing SQL INSERT strings, I thought I was being "safe" using the Format() function.

The problem occurs when using Format() on a Double where the local uses a Comma (,) instead of a Period (.) and REALSQLdatabase thinks one value is two fields (the SQL string sure looks like it is written that way).

The moral of the story... use ReplaceAll on the formatted string before adding it to the SQL string!

Ouch ... yeah that would do it

SQL is not internationally savvy in many many ways
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>