Click here to Skip to main content
15,900,258 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Generalconfiguring DDE data feed Pin
H.J.Verschuren15-Sep-03 0:16
sussH.J.Verschuren15-Sep-03 0:16 
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 
Yo all, have entered a stupid problem which I'm not sure is a bug in VB. I have this code:
<br />
Dim Record as Recordset, DB as Database<br />
Set DB = OpenDatabase("c:\db.mdb")<br />
Set Record = DB.OpenRecordset("BASE")<br />


Yet this remarkably simple code falls over when setting the recordset, because there is a "data type mismatch" (groan), when in fact there is no data type mismatch. OpenRecordset returns, guess what, a recordset, so wtf????? To add insult to my injuries, if I declare Record as a Variant instead, the line proceeds and guess what, Record gets cast to a, wait for it, Recordset object (ie. I can access the variant as I would a recordset and in debug the fields are identical), and all the data is intact and correct. Also, interestingly (though wankily) if I cast the Recordset object to a variant using CVar and then call OpenRecordset, I get no errors and indeed no recordset object, its just set to 'Nothing'. Is this just another episode of why VB is so sh*t? Can someone explain to me how a function returning a Recordset object can have a data type mismatch when trying to assign to a Recordset object??? Honestly, this is basic programming logic which this stupid, shitting language cannot grasp. I await someone to prove me wrong.
GeneralRe: OpenRecordset bollocks Pin
Dangleberry15-Sep-03 0:19
sussDangleberry15-Sep-03 0:19 
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 

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.