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

Posted by Jim Carlock on 10/01/07 22:45

"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?

Anyone have a good example of using namespaces?

--
Jim Carlock
Swimming Pool, Spa And Water Feature Builders
http://www.aquaticcreationsnc.com/

 

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

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