You either have to make the method Shared or use an instance of the class General: or Shared(VB.NET)
Replaced the reader declaration with this one and now it works! Encoding.Default represents the ANSI code page that is set under Windows Control Panel.
Use This is assuming VB.NET. Judging by the name “txtPrice”, you really don’t want an Integer but a Decimal. So instead use: If this is the case, be sure whatever you assign this to is Decimal not an Integer.
There is one that comes with vb.net. When you open a .vbp vb6 project, it asks if you would like to automatically convert it to vb.net. It does a pretty good job, exclusive of third party add-ons.
for VB: vbCrLf or vbNewLine for VB.NET: Environment.NewLine or vbCrLf or Constants.vbCrLf Info on VB.NET new line: http://msdn.microsoft.com/en-us/library/system.environment.newline.aspx The info for Environment.NewLine came from Cody Gray and J Vermeire
Not sure what you mean with “class constructor” but I’d assume you mean one of the ones below. Instance constructor: Shared constructor:
sef, If the problem is with Database return results, I presume it is in this scenario: To fix that: edit: added code formatting tags …
You will have to change some of your data types but the basics of what you just posted could be converted to something similar to this given the data types I used may not be accurate. Collections cannot be sorted so if you need to sort data you will probably want to use an array. …