Click here to Skip to main content
15,912,205 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Generalfew lines translation from c# to VB.NET Pin
notturno14-Sep-03 23:44
notturno14-Sep-03 23:44 
GeneralRe: few lines translation from c# to VB.NET Pin
Ian Darling15-Sep-03 1:09
Ian Darling15-Sep-03 1:09 
GeneralRe: few lines translation from c# to VB.NET Pin
notturno15-Sep-03 7:31
notturno15-Sep-03 7:31 
GeneralRe: few lines translation from c# to VB.NET Pin
Ian Darling15-Sep-03 22:19
Ian Darling15-Sep-03 22:19 
GeneralRe: few lines translation from c# to VB.NET Pin
Ian Darling15-Sep-03 1:12
Ian Darling15-Sep-03 1:12 
GeneralRe: few lines translation from c# to VB.NET Pin
notturno15-Sep-03 7:16
notturno15-Sep-03 7:16 
GeneralOpenRecordset bollocks Pin
Dangleberry14-Sep-03 23:19
sussDangleberry14-Sep-03 23:19 
GeneralRe: OpenRecordset bollocks Pin
Dangleberry15-Sep-03 0:19
sussDangleberry15-Sep-03 0:19 
OK guys, found the answer elsewhere on the web, and guess what, its sh*t. Basically VB defines two recordset objects, both called 'Recordset', for ADODB and DAO, which is fair enough. However, fatally, VB CANNOT differeniate between the two, so whenever you specify Dim Record as Recordset it always assumes you are using the ADODB recordset object, hence the data type mismatch because OpenRecordset returns a DAO recordset, duh. This is exactly why VB is sh*t. C++ adopts a technique of namespaces, if there is ambiguity in the type the compiler will throw an error saying 'use of ambiguous types', nice, addresses you to the problem. VB just kicks up some bullshit AT RUN-TIME, which is horrible, horrible, horrible, because no end of bugs could manifest themselves. You even have to specify Option Explicit to force the compiler to point out basic compiler errors such as undeclared identifiers. This is wank. Anyway, the solution is declare the recordset as part of the DAO 'namespace' like so Dim Record as DAO.Recordset.

VB should be burned on a cross and sent to hell for its sins
GeneralRe: OpenRecordset bollocks Pin
Simon Walker15-Sep-03 2:56
Simon Walker15-Sep-03 2:56 
Generalfill Combobox with xml data Pin
14-Sep-03 22:03
suss14-Sep-03 22:03 
GeneralVB.net book suggestions.. Pin
Agnihothra14-Sep-03 20:40
Agnihothra14-Sep-03 20:40 
GeneralRe: VB.net book suggestions.. Pin
Hesham Amin14-Sep-03 21:44
Hesham Amin14-Sep-03 21:44 
GeneralRe: VB.net book suggestions.. Pin
Agnihothra14-Sep-03 23:32
Agnihothra14-Sep-03 23:32 
GeneralRegex help Pin
jholt13-Sep-03 7:25
jholt13-Sep-03 7:25 
GeneralRe: Regex help Pin
Ian Darling13-Sep-03 8:41
Ian Darling13-Sep-03 8:41 
GeneralRe: Regex help Pin
jholt13-Sep-03 9:27
jholt13-Sep-03 9:27 
GeneralRe: Regex help Pin
Ian Darling13-Sep-03 22:49
Ian Darling13-Sep-03 22:49 
GeneralMix Managed code and unmanaged code Pin
gsmcecil13-Sep-03 6:03
gsmcecil13-Sep-03 6:03 
GeneralFAXING Pin
Anonymous13-Sep-03 4:24
Anonymous13-Sep-03 4:24 
GeneralF1 Button Pin
Emile Jacobs12-Sep-03 4:02
Emile Jacobs12-Sep-03 4:02 
Generalusing java program as server and vb as client Pin
onwebbe12-Sep-03 3:06
onwebbe12-Sep-03 3:06 
GeneralCompile exe with controls Pin
Dangleberry12-Sep-03 1:31
sussDangleberry12-Sep-03 1:31 
GeneralRe: Compile exe with controls Pin
Ray Cassick12-Sep-03 3:27
Ray Cassick12-Sep-03 3:27 
GeneralRe: Compile exe with controls Pin
Dangleberry14-Sep-03 23:43
sussDangleberry14-Sep-03 23:43 
GeneralI need an installation program to install my system Pin
Anonymous11-Sep-03 22:20
Anonymous11-Sep-03 22:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.