Menu

#2 Some Errors Fixed

open
nobody
None
5
2008-02-07
2008-02-07
Anonymous
No

Hi beautiful piece of code!

But there is some errors inners it. Here is some I fond in my first test.

In the : Class dBASECommand into the Sub ParseCommandText:
- placing: m_sCmdText.ToUpper.Split(Char.Parse(" ")) with the ToUpper method skip the possibility to retrieve the tables names in lowercase and return an error "No table fond!" instead we split without convert it in uppercase as is: m_sCmdText.Split(Char.Parse(" ")) and we will compare the splits as the Function IsFrom with String.Compare(str.ToUpper, "FROM", True) and in the other ones like IsSelect.

In the Namespace dBASEDataTypes, in the class dBASEDateTypeNumber trying convert numbers in the Function Convert like " 12300.00" to an Integer will return an error. Instead, we will use a Single data type as: Return Single.Parse(Str.Trim) instead of Return Integer.Parse(Str)

There is still the localizations to manage, because when we try to read some fields with accents, we get _ (underscores) in the fields names, that could mix more than one.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.