You are here: Re: Namespaces? Why? « PHP Programming Language « IT news, forums, messages
Re: Namespaces? Why?

Posted by Jerry Stuckle on 10/02/07 19:51

Steve wrote:
> "Jerry Stuckle" <jstucklex@attglobal.net> wrote in message
> news:Qu2dndheJM6izJ_anZ2dnUVZ_vLinZ2d@comcast.com...
>> Steve wrote:
>>> "Jerry Stuckle" <jstucklex@attglobal.net> wrote in message
>>> news:7KKdnSei3tvGMpzanZ2dnUVZ_vqpnZ2d@comcast.com...
>>>> Jim Carlock wrote:
>>>>> "RageARC" wrote...
>>>>>> using namespace curl;
>>>>>> init...
>>>>>> exec...
>>>>>> close...
>>>>> That looks like Visual Basic 3/4/5/6...
>>>>>
>>>>> 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?
>>>>>
>>>> Absolutely nothing. Namespaces are for source code separation, not
>>>> database selection.
>>> 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.
>> OK, that makes sense. Not being familiar with DAO, I wouldn't know (or
>> care ;-) ).
>
> dude, all he had to say was 'vb' and i completely lost interest from there.
> ;^)
>

:-) Unfortunately, I need to do some VB work still.

> 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::resource
>
> later.
>
>

Yep, I understand. I use the adodb interface in VB, though - it really
is better.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация