Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Beginning VB 6
Password Reminder
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Display Modes
  #1 (permalink)  
Old January 14th, 2005, 10:47 AM
Authorized User
Join Date: Oct 2004
Location: Hyderabad, Andhra Pradesh, India.
Posts: 59
Thanks: 0
Thanked 0 Times in 0 Posts
Default 5 Questions in VB


My questions are:

1.what is the difference between Client Server & Web Server
2. Difference between Public and Global?
3. Difference between Byval & ByRef
4. What is ParamArray and when it should be used.
5. When the memory is allocated to variables in VB?

Ramkumar A D
Reply With Quote
  #2 (permalink)  
Old January 14th, 2005, 01:06 PM
Friend of Wrox
Join Date: Nov 2004
Location: Port Orchard, WA, USA.
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts

A web server responds to internet-style requests, such as those that Internet Explorer would submit. Though a client server exposes resources (folders, files, printers, etc.), it does not respond to internet-style requests.

No difference between public and global. Public has been preferred for a while.

ByVal creates a new instance of the value being passed, and then passes a reference to that new resource. That new resource is abandoned after the function ends.
ByRef causes the variable within the called function to use the same piece of memory that the calling routine is using. Therefore, if the value is changed within the called function, you will have that new value within the calling function when you get back there.

Public variables are allocated when the program initializes.
In VB 6, the local variables in a routine are allocated when the routine initializes, no matter where in the routine they are Dim'd.
In VB.NET, variables are initialized when they come into scope. In .NET, you can restrict a variable's scope to a block of code, something that VB6 won’t do. If you do that in .NET, the memory is allocated when the variable comes into scope.
(Actually, if you read through that, you'll see that [u]all</u> variables allocate their memory when tey come into scope, but I just delineated where that 'comming into scope' takes place for various situations.)
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
.NET Interview Questions, C# Interview Questions, dotnetuncle .NET Framework 2.0 3 April 9th, 2015 08:43 AM
vb.net 20005 Questions, Please help me compad VB.NET 0 July 30th, 2008 05:30 AM
Good VB interview questions are needed. BigDude Access VBA 1 August 30th, 2005 08:40 AM
VB Questions priyanka123 VB How-To 5 May 24th, 2004 08:53 AM
Please go through this questions phpsharma PHP How-To 0 November 4th, 2003 03:26 AM

All times are GMT -4. The time now is 03:36 PM.

Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.