realbasic-nug
[Top] [All Lists]

Stupid number formatting error...

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Stupid number formatting error...
From: Phil M <phil at mobleybros dot com>
Date: Thu, 28 Sep 2006 10:01:25 -0700
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
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!

_______________________________________________
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>