Re: Namespaces? Why?
- From: Jerry Stuckle <jstucklex@xxxxxxxxxxxxx>
- Date: Wed, 03 Oct 2007 07:23:49 -0400
Steve wrote:
"Jerry Stuckle" <jstucklex@xxxxxxxxxxxxx> wrote in message news:uf6dnf6WwM5ek57anZ2dnUVZ_gWdnZ2d@xxxxxxxxxxxxxxSteve wrote:"Jerry Stuckle" <jstucklex@xxxxxxxxxxxxx> wrote in message news:wLadnevBs7BCPJ_anZ2dnUVZ_tjinZ2d@xxxxxxxxxxxxxxSounds interesting. But I don't do vb.net. Rather, I'm trying to get my last vb customer converted to MySQL/PHP.Steve wrote:don't get me wrong...i use vb.net all the time. however, it's more like a programming language than whatever they call vb < .net these days."Jerry Stuckle" <jstucklex@xxxxxxxxxxxxx> wrote in message news:Qu2dndheJM6izJ_anZ2dnUVZ_vLinZ2d@xxxxxxxxxxxxxx:-) Unfortunately, I need to do some VB work still.Steve wrote:dude, all he had to say was 'vb' and i completely lost interest from there. ;^)"Jerry Stuckle" <jstucklex@xxxxxxxxxxxxx> wrote in message news:7KKdnSei3tvGMpzanZ2dnUVZ_vqpnZ2d@xxxxxxxxxxxxxxOK, that makes sense. Not being familiar with DAO, I wouldn't know (or care ;-) ).Jim Carlock wrote:jerry, i think he meant the DAO used in the 'with' statement...which is NOT a namespace but an object instance. i believe his code sample above would fail anyway since i don't recall DAO being a static class - static was introduced to vb in vb.net."RageARC" wrote...Absolutely nothing. Namespaces are for source code separation, not database selection.using namespace curl;That looks like Visual Basic 3/4/5/6...
init...
exec...
close...
Dim db As DAO.Database
Dim rs As DAO.Recordset
Dim sSQL As String
sSQL = "Select * From customers;"
With DAO
Set db = .OpenDatabase("mydata.mdb")
Set rs = .OpenRecordset(sSQL)
End With
'... rest of the code
Except I think it works a little better with the "With" in
Visual Basic.
What's the advantage of a namespace if you have 5 different
databases to connect to?
worlds better...just don't bind form controls to it. vb.net's adodb is supposed to have fixed all the crap that happened doing that in the past. however, i was so frustrated with 'the past' that i still keep a middle man (my o.m.) inbetween the ui and db layers.what's worse is that he's probably more likely using vb 3/4 since data access objects were obsoleted in later versions for the alimighty (laughs) adodb class(es). that would also explain why he has no idea that dao.interface is not the same as namespace::resourceYep, I understand. I use the adodb interface in VB, though - it really is better.
later.
Unfortunately, it's a non-profit with a large (and VERY POORLY written) site. It's going to be expensive to do it right, even if I give them a discount.
have fun with that. ;^)
Thanks... :-)
What can I say. Every page starts out with
<%ON ERROR RESUME NEXT%>
And when I make changes to a page, I need to go back and fix the existing errors before I can add new code.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@xxxxxxxxxxxxx
==================
.
- Follow-Ups:
- Re: Namespaces? Why?
- From: Steve
- Re: Namespaces? Why?
- References:
- Re: Namespaces? Why?
- From: Jim Carlock
- Re: Namespaces? Why?
- From: Jerry Stuckle
- Re: Namespaces? Why?
- From: Steve
- Re: Namespaces? Why?
- From: Jerry Stuckle
- Re: Namespaces? Why?
- From: Steve
- Re: Namespaces? Why?
- From: Jerry Stuckle
- Re: Namespaces? Why?
- From: Steve
- Re: Namespaces? Why?
- From: Jerry Stuckle
- Re: Namespaces? Why?
- From: Steve
- Re: Namespaces? Why?
- Prev by Date: php+oracle+insert multiple clob
- Next by Date: Re: mcrypt_encrypt giving different results for same input?
- Previous by thread: Re: Namespaces? Why?
- Next by thread: Re: Namespaces? Why?
- Index(es):
Relevant Pages
|