An expert who has achieved level 2 by getting 100 points
An expert that got 5 achievements.
An expert who has answered 200 questions.
An expert whose answer got voted for 20 times.
Re: global declaration syntax in vb
for initializing a variable globally, add a module to the project and open the code window for the module.
Add the variable in the following syntax
public <variable name> as <type>
public a1 as integer
- If you need clarification, ask it in the comment box above.
- Better answers use proper spelling and grammar.
- Provide details, support with references or personal experience.
Tell us some more! Your answer needs to include more details to help people.You can't post answers that contain an email address.Please enter a valid email address.The email address entered is already associated to an account.Login to postPlease use English characters only.
Tip: The max point reward for answering a question is 15.
I'm assuming you are referring to declaring variables in Procedural programming languages such as Java. Variables need to be declared for several different reasons, some of which include helping the computer reserve space in memory for variables to be stored and it also plays a part in the various stages of converting the source code, i.e. the code that you type in VB or Java, into machine code which is a series of binary digits that the computer can actually understand. It helps the computer in debugging the code for errors. In the first stage of code conversion, lexical analysis, information about the variable names is stored. In the next stage, Syntax analysis, the code is checked to be grammatically correct according to the rules of Backus Naur Form, i.e. if a key word such as PRINT is typed in as PLINT the computer will treat this as a variable name and since no information about this variable name has been entered in the lexical analysis stage it knows that an error has been made.
Hope this helps!
'declare the SQL statement that will query the database SQL = "SELECT * FROM TABLE_NAME"
'create an instance of the ADO connection and recordset objects Set Connection = Server.CreateObject("ADODB.Connection") Set Recordset = Server.CreateObject("ADODB.Recordset") 'Open the connection to the database Connection.Open ConnString
'Open the recordset object executing the SQL statement and return records Recordset.Open SQL,Connection
'first of all determine whether there are any records If Recordset.EOF Then Response.Write("No records returned.") Else 'if there are records then loop through the fields Do While NOT Recordset.Eof Response.write Recordset("FIRST_FIELD_NAME") Response.write Recordset("SECOND_FIELD_NAME") Response.write Recordset("THIRD_FIELD_NAME") Response.write "<br>" Recordset.MoveNext Loop End If
'close the connection and recordset objects to free up resources Recordset.Close Set Recordset=nothing Connection.Close Set Connection=nothing
See progrming isn`t difficult b it in C or C++ or java.... Al u need to knw is first d syntax of d language u r using(for example Syntax of printing a line...), den acquire d knowledge f d standrd compilrs 4 d language(Eg gcc 4 ansi C n turbo c for C)... On my part i wud say start up wid C den procid to java n C++ n VB n stuffs....dere r many buks 4 basics in C available...
The first domain contoller in a network is a global catlog server
global catlog do the replication in the forest and it require to create any object in the forest if global catlog is not availiable we cannot create any object