| 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> |
|---|---|---|
| ||
| Previous by Date: | Re: SearchField control beta test, Phil M |
|---|---|
| Next by Date: | Re: Stupid number formatting error..., Norman Palardy |
| Previous by Thread: | Standard shortcut for Preferences, Steve Roy |
| Next by Thread: | Re: Stupid number formatting error..., Norman Palardy |
| Indexes: | [Date] [Thread] [Top] [All Lists] |