Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  HOME    TRACKER    Visual Basic


Can someone explain to me what use is the Owner Form parameter of the Show method for a Form?
I ma trying to figure out a clean way of passing paramaters from one form to another and was wondering if this would help.

View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Can Someone Explain The Following
I opened up a form in Notepad and I got the following first 2 lines:

Object = "{648A5603-2C6E-101B-82B6-000000000014}#1.1#0"; "MSCOMM32.OCX"

I know what the first set of numbers are (classid), what is the "#1.1#0"?


Explain Please....
In the following code see the tmp in bold is that just a variable or what i cant understand that bit can someone please fill me in

'if the ball has hit player 2's paddle
If shpBall.Left + shpBall.Width >= shpPlayer2.Left And shpBall.Left <= shpPlayer2.Left + shpPlayer2.Width Then
If shpBall.Top + shpBall.Height >= shpPlayer2.Top And shpBall.Top <= shpPlayer2.Top + shpPlayer2.Height Then
'calculate the angle it's deflecting off at
[b]tmp[/b] = ((shpPlayer2.Top + (shpPlayer2.Height / 2)) - (shpBall.Top + (shpBall.Height / 2))) * 0.55
vmom = vmom + [b]-tmp[/b]
shpBall.Left = shpPlayer2.Left - shpBall.Width
'deflect the ball
hmom = -hmom
End If

Explain This...
I found this sample at and I got this sample for making multiple connetions:

Private Sub Listen_ConnectionRequest(ByVal requestID As Long)

'check for connection hole
'if theres a hole, fill the hole
'then go to stuff
For i = 0 To Connecters
If Winsock(i).State < 2 Or Winsock(i).State > 7 Then
Winsock(i).Accept requestID
GoTo stuff
End If
Next i

'increase connections
'load and accept connection
Connecters = Connecters + 1
Load Winsock1(Connecters)
Winsock(Connecters).Accept requestID

'listen for new connections

End Sub

I don't know if it works or how it works...could anyone explain this? Especially this line:

If Winsock(i).State < 2 Or Winsock(i).State > 7 Then


can somebody help me by briefly explaining to me what the following code do?perhaps with a simple example? thanks alot..

vb code
Private Function TrimString(ByVal StringIN As String) As String

TrimString = Trim(StringIN)

While InStr(TrimString, String(2, " ")) > 0

TrimString = Replace(TrimString, String(2, " "), " ")


End Function

Please, Help! How To Explain This?
Excel & VBA.

This is jut the command to add button to selected cell.

ActiveSheet.Buttons.Add(Range("K40").Left, Range("K40").Top, Range("K40").Width, Range("K40").Height).Select

I am doing this command in several cases:in the first case I have view size (zoom) of worksheet = 100%, in the second = 200%, in the third case < 100% (75%, 50%).

In the first two cases everything is fine and button is located exactly in the cell K40. But when zoom is less than 100% my button becomes shifted and located not far from the cell but not exactly in this cell. How to explain this?

Wat can I do to make this work correct?

Could someone please explain the following code to me in great detail, i am a noob.

Option Explicit
Private Const pi As Double = 3.14159265358979

Private Sub Form_Load()
Me.AutoRedraw = True
Timer1.Interval = 20
Timer1.Enabled = True
End Sub

Private Sub Timer1_Timer()
Static intCount As Integer
Dim x As Integer
Dim y As Integer
Dim intRadius As Integer
Dim intXcenter As Integer
Dim intYcenter As Integer


intRadius = 2100
intXcenter = 2200
intYcenter = 2200

Me.DrawWidth = 4
x = (Cos(intCount * pi / 180) * intRadius) + intXcenter
y = (Sin(intCount * pi / 180) * intRadius) + intYcenter

Me.Line (x, y)-(x + 180, y + 180), vbRed, BF

intCount = intCount + 1
If intCount = 361 Then intCount = 0
End Sub

Can Anyone Explain?
I set up a form with a label (named label1... go figure )
I put this code into form_load


Private Sub Form_Load()
Static nLoop As Long


For nLoop = 0 To 100000
Label1.Caption = nLoop
Next nLoop

End Sub

What is odd is anytime I hit the Close Window button (on form1, not the VB6 program) the counter resets its self.

Anyone know why?

I'll Do My Best To Explain...
Hey guys... I've made this GUI and I'm pretty proud of it so far. But I've got a problem... This is my code so the button changes when it is pressed, kind of like windows...

Private Sub imgClose_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
imgClose.Visible = False
imgCloseDown.Visible = True
End Sub

Private Sub imgClose_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
imgClose.Visible = True
imgCloseDown.Visible = False
End Sub

Now, this works fine... But then I added 'End' in the code so it unloads the program, like below...

Private Sub imgClose_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
imgClose.Visible = False
imgCloseDown.Visible = True
End Sub

Private Sub imgClose_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
imgClose.Visible = True
imgCloseDown.Visible = False
End Sub

Now, this works fine. But my problem is if I want to not close the program I can just drag the mouse off the button and it will not end. Again like Windows...

Please, help me...

How Would You Explain VB??
If you were asked what is Visual Basic all about, how do you explain?? I know how to use VB but when it comes to explaining what is VB i have some problem. So please tell me how do i explain it in words

Can Someone Explain This To Me?
Hi, everybody!

I've finally registered Crystl32.ocx on my PC. The problem now is, that I simply don't know how to use it!
So, Can anyone explain it to me (some code or attachement) or a link to tutorial on the net somewhere.

Thanx in advance.

Ales Zigon

Can Anybody Explain
why does the msgbox only show the "1" and debug shows both "1" and "2" using a fixed length string.

Dim str1 As String * 8

MsgBox "1" & str1 & "2"
Debug.Print "1" & str1 & "2"

thank you.

Can Someone Explain
the following to me:

I have made a VB6 program, and when som users install it, they get the following message:

"Some files on your computer are out of date, click ok to update these files and reeboot"

When the user clicks ok, the PC reeboots, but when the user tries to install it again the same message appears again!!!


Can Some One Explain This Please
ok i got the bold tags working but when i get italic tags this happens in the preview
tf1ansideff0deftab720{fonttbl{f0fswiss MS Sans Serif;}{f1fromanfcharset2 Symbol;}}
par }

and in the script i typed it as
Private Sub cmdItalic_Click()
RichTextBox1.Text = RichTextBox1 & "<i></i>"
End Sub

iand the bold and italics look like this in the script
Private Sub cmdBold_Click()
RichTextBox1.Text = RichTextBox1.Text & "<b></b>"
End Sub
Private Sub cmdItalic_Click()
RichTextBox1.Text = RichTextBox1 & "<i></i>"
End Sub

can some one please explain this to me

Could Someone Explain This?
im a bit of a newb with vb, and recently i came upon this line of code

Me.Picture1(a).Picture = Me.Picture2(i).Picture

in particular i wasnt sure what the 'Me.' prefix means, if anyone could explain this for me id really appreciate it

Can Anyone Explain...
can anyone explain Property Get and Property Let?

I can't do this assignment

DE.rscmdCommand.Fields("F1")= IIf (txtField.Text <> "", txtField.Text,Null)

Only the first time when I do addnew method the operation is sucessfull... After that when I try to update the recordset... I get the error above commented.
Any help will be appreciated.

Could Someone Explain...
hiya's, i'm pretty new to VB and am in my program, need to database.

i've been advised to use an sql database because my data will be dynamic and will be continuously changing.

and this is where i get stuck. could someone please explain all this ADO, DAO, ADODC, ADODB, ODBC, JET stuff to me? I would like the quickest solution available because i'm writing an online game.

i've done research everywhere but have troubles understanding cause it seems everyone says something different. some say JET and DAO is only for Access databases, some make me think otherwise. could someone clear this up a bit?

and could you also explain how to actually get a simple database opened in my program? i've got both sql2000 and mysql but am unsure what to do. am i supposed to create the database with mysql or whatever and then just use the file with VB? or does VB actually communicate with mysql to modify the database? i don't quite understand all this, i would appreciate some insight.

your help is very muchly appreciated.

Can Anyone Explain This To Me?
I'm a newbee to SQL. What I wanna do is to retrieve information from 3 different tables in my DB (like:tblNames, tblJobs, tblCities). I know how to do this:
strSQL="SELECT * FROM tblNames WHERE name = '" & strName & "'"
but... this gives me only values from table tblNames (not from other two!). I saw somewhere in this section something about linking tables but I just can't figure it out! ( I don't know, I just might be dumb?). And yes, it should work with .AddNew and .Delete too.

Please help!
Thanks! Ales

Can Someone Please Explain This To Me?
Hi all,

I have come across some SQL Server 2K strangeness and I was wondering if anyone knew * * * is going on.....

If I type the following in QA:

SET @Value = 73/12
PRINT @Value
SET @Value = ceiling(@Value)
PRINT @Value
SET @Value = @Value/1.175
PRINT @Value
The results are :

This is obviously wrong.

However if I change to:

SET @Value = 73.0/12 <------Notice the .0
PRINT @Value
SET @Value = ceiling(@Value)
PRINT @Value
SET @Value = @Value/1.175
PRINT @Value
I get:

Which is correct

So...why the hell is it treating my initial sum as Integers and giving me back an Integer??? I declared my Var as a FLOAT (and as a DECIMAL while experimenting).

This is highly annoying!

Thx in advance

Can You Explain This To Me?
Maybe someone could tell me what I'm missing here. I wanted to add a horizontal scrollbar to a combo box. It's a simple trick with list box and I figure since the list part of a combo is basically a list box it shouldn't be to difficult. The example below almost works. It scrolls back and forth just fine with the arrow buttons, or when you click between the 'thumb' and arrow buttons. The problem is the thumb doesn't work. I can drag it to scroll, but when I let go it stays scrolled but the thumb goes back to the left side. If I have already scrolled to the right then click on the thumb it causes the list to scroll back to the beginning.
I'd appreciate some ideas on this, it's got me pulling out my hair and frankly I just don't have enough left that I can afford to lose any more. I'm using a combo with the style set to '1-Simple Combo' if that matters.
Option Explicit

Private Type RECT
Left As Long
Top As Long
Right As Long
Bottom As Long
End Type

cbSize As Long
rcItem As RECT
rcButton As RECT
stateButton As Long
hwndCombo As Long
hwndItem As Long
hwndList As Long
End Type

Private Declare Function DrawText Lib "user32" Alias "DrawTextA" (ByVal hDC As Long, _
ByVal lpStr As String, ByVal nCount As Long, _
lpRect As RECT, ByVal wFormat As Long) As Long

Private Declare Function GetSystemMetrics Lib "user32" (ByVal nIndex As Long) As Long

Private Declare Function GetComboBoxInfo Lib "user32.dll" (ByVal hwndCombo As Long, _

Private Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" ( _
ByVal hwnd As Long, ByVal nIndex As Long) As Long

Private Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" ( _
ByVal hwnd As Long, ByVal nIndex As Long, _
ByVal dwNewLong As Long) As Long

Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" ( _
ByVal hwnd As Long, ByVal wMsg As Long, _
ByVal wParam As Long, lParam As Any) As Long
Const DT_CALCRECT = &H400
Const WS_HSCROLL = &H100000
Const GWL_STYLE As Long = (-16)
'-> The list part of the combo is really a list box so use the listbox constant.

Private Sub Form_Load()
' Get the handle to the listbox portion of the combo box and add a horizontal scrollbar.
Dim iRet As Long, iStyle As Long, iMaxWid As Long, hList As Long

Me.ScaleMode = vbPixels
Me.Font = Combo1.Font

CBI.cbSize = Len(CBI)
Call GetComboBoxInfo(Combo1.hwnd, CBI)
hList = CBI.hwndList
iStyle = GetWindowLong(hList, GWL_STYLE)

With Combo1
.Move 10, 10, 130
.AddItem "Apple Apricot Bananas Grapes Oranges Pears Peach Persimmon Pineapples"
.AddItem "Apple"
.AddItem "Apricot"
.AddItem "Bananas"
.AddItem "Grapes"
.AddItem "Oranges"
.AddItem "Pears"
.AddItem "Peach"
.AddItem "Persimmon"
.AddItem "Pineapples"
End With

' Need the combined width of the longest list item and the VScroll bar.
Call DrawText(Form1.hDC, (Combo1.List(0)), -1&, rc, DT_CALCRECT)
iMaxWid = rc.Right + GetSystemMetrics(SM_CXVSCROLL)
Call SendMessage(hList, LB_SETHORIZONTALEXTENT, ByVal iMaxWid, ByVal 0&)

End Sub

Can Somebody Explain This To Me?
I found this T-SQL code on line and I dont understand what the 'where a2.au_lname <= a1.au_lname' is doing in the SQL below:

select a1.au_lname
from pubs..authors a1
where (select count(*) from pubs..authors a2
where a2.au_lname <= a1.au_lname) between 12 and 14
order by a1.au_lname

Can anyone explain a little to me, please?

Thanks a lot.

Please Explain To Me...
What's the difference between sequential, binary, and random-access files? Are these files created or are they just names of methods on how you use files? How do I create a file that is sequential, binary, or random-access? If I'm going to develop a simple accounts receivable / payable program, what kind of file should I use or create (sequential, binary, or random access?) Also, what extension would suit that kind of program? .dbf? .dat? etc...... Also, does the following code have anything to do with random-access files?

Open "c:friends.dbf" For Random as #1

Not sure if the syntax is correct, but you get what i mean. Also, do I always have to use the function that returns an available number for a file? ...forgot what that function is....anyway, please explain these in simple layman's terms because I'm very very stoopid. try to be as clear as possible. thanks guys!!!

Can Anyone Explain This.
Private Sub Command1_Click()

lngColour = Picture1.BackColor
If lngColour < 0 Then 'Check if it is a system colour
'get the index into the colour table
lngColour = lngColour And Not &H80000000
lngColour = GetSysColor(lngColour)
End If

intRed = lngColour And 255
intGreen = lngColour 256 And 255
intBlue = lngColour 65536 And 255
MsgBox intRed & intGreen & intBlue
End Sub

Can Someone Explain This To Me?
I saw something similar to this once, and I was wondering how it's evaluated to the final value. I can't seem to figure it out.

VB Code:
Text1.Text = (Text1.Text Mod 50) Or (Text1.Text + 48)

Please Explain
Can someone please explain how to make a frame transparent?

Please dont throw code at me lol i need someone to actually explain it because i had looked throught alot of code to make frames transparent the problem is i dont understand how it works. Howeva use code to help ur explanation.

Can You Explain This To Me???
Can anyone explain this to me,

I am making a very simple darts scorer so the score is tallied downwards from 501. I knew what i had to do but it wasn't quite working out and then by fluke i got it to work but i don't understand the logic to it. I might just be having a mental block but i can't see how it could possibly work this way. Can anyone explain it to me?


VB Code:
Option ExplicitDim Score As Integer  Private Sub cmdScore_Click()Static Total As IntegerIf TxtScore.Text = "" ThenMsgBox "please enter number"ElseScore = TxtScore.Text End If Const A = 501Total = Total + ScoreTxtTotal.Text = A - Total End Sub

Explain This...
Hi there,
I got a label control which is populated with the name of the client firm.

Now some of the names in the database contain an amphersand. So I wrote the following function to display the amphersand.

VB Code:
If InStr(1, Label1.Caption, "&") <> 0 Then        Label1.Caption = Replace(Label1.Caption, "&", " && ")    End If

This unfortunately doesn't work. I figured out the solution.

VB Code:
Dim xstr As String    If InStr(1, Label1.Caption, "&") <> 0 Then        xstr = Replace(Label1.Caption, "&", " && ")        Label1.Caption = xstr    End If

Why is the extra variable required? Some one please explain.

Could Somebody Explain This
Why would you write,

VB Code:
Private Sub Picture1_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single) Winsock1.Resquest_Accept End Sub

This is using the winsock API, and is obvioulsy the equivalent to the winsock controls (example below),
VB Code:
Private Sub sckMain_ConnectionRequest(ByVal requestID As Long)sckMain.ClosesckMain.Accept requestIDEnd Sub
sub for validating an incoming connection request .

I just dont see the relevance in the data acceptance sub being set to the Picture1_MouseUp event

How Can I Explain This?!!
Hi Guys,

I need to write a VB program which takes names from a distribution list (usually consisting of about 4000 names). Make a link from this list to a relay server and then, using a mail merge type idea, send a PERSONALISED mail out to each person in this list!!

I have NO idea where to start. There was mention of something call BLATT, but I can't seem to find any info about this on the net.

Please help!!!


Can Anyone Explain......
Sorry to be dimensionally challenged, but I need some help.
I've got a code snippet here that uses the GetRows method of a recordset object.

It works fine, but I can't get it through my head HOW IT WORKS.

Can anyone please add comments to this code, explaining how it works. I need to figure this out so I can load it into a Listbox. Thank You!!!

Dim values As Variant, fldIndex As Integer, recIndex As Integer
values = Nrs.GetRows(3, , Array("ProductID", "ProductName", "UnitPrice", "Discontinued"))
For recIndex = 0 To UBound(values, 2)
For fldIndex = 0 To UBound(values)
Print values(fldIndex, recIndex)

VB .net Please Explain...
Ok I've used vb for many years now, and have been away from it for a little while, what is up with this what is the benefit besides it compiles down to a byte code. Is it so it can run on any OS such as java?? If so can unix run it?? These questions may sound stupid but I need hard facts to substantiate the use of over Java at my workplace and any help and understanding will be greatly appreciated!! Thanx everyone!


Can Someone Explain This?
Can someone explain this code? I want to learn vb and do that thru examples, but i don't understand this one:

it is an peace of code that i cutted out of an IP scan app, that scans ip's on an network from 'TextFromIp' to 'TextToIp' but somehow it only scans x.x.x.1 until x.x.x.254, so if i understand this code maby i can change it that it scan bigger ranges.

What i don't understand is what the 'x' does, and the Mid$(txtFromIP, x, 1) = "." Then

Plz help me!!

VB Code:
Dim tmpInt As IntegerDim toIPend As IntegerDim startIP As IntegerDim bigNet As StringDim x As IntegerDim tmpStr As String For x = Len(txtToIP) To 1 Step -1    If Mid$(txtToIP, x, 1) = "." Then       toIPend = Mid(txtToIP, x + 1)       Exit For    End IfNext x For x = Len(txtFromIP) To 1 Step -1    If Mid$(txtFromIP, x, 1) = "." Then       startIP = Mid(txtFromIP, x + 1)       Exit For    End IfNext x bigNet = Mid$(txtFromIP, 1, x) For x = startIP To toIPend    lblOnIP.Caption = (bigNet & x)    OpenSocket (bigNet & x)    DoEventsNext x

Can Someone Explain This To Me!
I was just looking back at some code!

And i found this

VB Code:
Private Sub pct_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)    X = X / Screen.TwipsPerPixelX    Select Case X        Case WM_LBUTTONDOWN            'Caption = "Left Click"            RaiseEvent TrayIconLeftCLick        Case WM_RBUTTONDOWN            'Caption = "Right Click"            RaiseEvent TrayIconRightCLick        Case WM_MOUSEMOVE            'Caption = "Move"            RaiseEvent TrayIconMove        Case WM_LBUTTONDBLCLK            'Caption = "Double Click"            RaiseEvent TrayIconDoubleCLick    End SelectEnd Sub

It's for the tray icon(sorry, i don't remember from who)

How can X = X / Screen.TwipsPerPixelX determine what the user did?????

Can Anybody Explain This?
I am displaying some messege when user click on close X of the form.
What i observed is when user clicks on lose button, buttons on the messegebox do not display a rectangle when they get focus
but if user tries to close the form with Alt+Space+C then the
message box buttons show that dotted rectangle when they get
the focus.
I am using XP. is this specific to XP? Has somebody experienced same thing?
I want the messegebox style like first one(No rectangle).
How can i do this?
Thanks in advance

Huh!? Someone Please Explain Me This
Can anyone tell me why with :

VB Code:
If strTempo Like "[A-Z, a-Z]" Then   msgbox "alphabet"End If

if strTempo = " " the message box comes up??

Could Somebody Explain This To Me?
X>=0 and Y>=0 and Z >=0

Is the same as

(X or Y or Z) >= 0

Why is that? Could somebody provice a mathematical proof or a logical explaination please?

Can Somebody Please Explain How...
I wrote this program that tests the status of a proxy on a network and depending on the results of that either sets internet explorer to use the proxy or not to use it. What I used on my computer to write the program was dwHKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionInternet SettingsProxyEnable. After bringing it to the network it was designed for I discovered that this doesn't work because there is no access to the registry. If you go to tools>internet options>connections>LAN settings you can make the change for as long as the computer is logged on. I'm just wondering how internet explorer can make this change and how I can emulate it. Thanks.

Explain This...........
I'm trying to find out what time it is from a time server, and i get this message from the server:

52273 01-12-30 02:44:46 00 0 0 545.8 UTC(NIST) *

Can somebody explain this?

Can Someone Explain
Set rIOrderServices = CreateObject( _

Can someone explain what is queue:/new:, I am sure that is not a directory. Please help, thanks

Can You Explain It Any More?
Hi, Muddy,

I don't understand your reply. I exactly need be able to cut, copy, paste, delete objects like command buttons or shapes. The objecst must be situated on a line into the window. Do you know any way to do it?


Thanks very much for your reply, anyway..

Can Someone Explain
I have a piece of code that will be used by 18 different forms. Can someone post a quick example of how and ware i would put the code in only one place so all forms can call it.


Could You Explain This To Me?
I am rather new to VB, so for me it's a bit hard to understand it sometimes. I have a code to check if Word is running:
Function IsWordApp() As Boolean
On Error GoTo PROC_WordCOPY
Set mvarWordApp = GetObject(, "Word.Application")
mvarWordApp.Visible = True
IsWordApp = True
Exit Function
MsgBox "Word is running!"
On Error GoTo PROC_NOWord
Set mvarWordApp = New Word.Application 'here smth.'s wrong
MsgBox "Word is not installed on this computer"
IsWordApp = False
End Function

I don't understand how it checks if Word is running. As I see it, it will always be false. Could you explain, please? And what's the difference if I check different application?


Could Anyone Explain...?
Could anyone explain to me how to compile some assembly routines into a DLL file that can be called in VB?

I ask because there is this pci card I must control that only has QBX and assembly routines that interface with it. The task has already been done, but I don't understand how it was done.

Could anyone explain how to reproduce such a thing?

I'm using VB 5.0 on windows 95 systems.


Can Someone Explain This?
I'm trying to read this Non-commented code and I don't understand how this section is working. The guy declares a type:
Type ParaIO
Change As Integer
ParaCount As Integer
FileNo As Integer
ParaDes As String * 4
ParaPos As Long
EndPos As Long
AEndPos As Long
OpenType As Integer
End Type

but then sets it like this:

chng = para.Change
cnt = para.ParaCount
FileNo = para.FileNo
Des$ = para.ParaDes
ps& = para.ParaPos
endps& = para.EndPos
appendendps& = para.AEndPos
otype = para.OpenType

I don't understand how this is working, shouldn't it be paraIO.OpenType etc?

Can Someone Explain This?
I'm trying to read this Non-commented code and I don't understand how this section is working. The guy declares a type:
Type ParaIO
Change As Integer
ParaCount As Integer
FileNo As Integer
ParaDes As String * 4
ParaPos As Long
EndPos As Long
AEndPos As Long
OpenType As Integer
End Type

but then sets it like this:

chng = para.Change
cnt = para.ParaCount
FileNo = para.FileNo
Des$ = para.ParaDes
ps& = para.ParaPos
endps& = para.EndPos
appendendps& = para.AEndPos
otype = para.OpenType

I don't understand how this is working, shouldn't it be paraIO.OpenType etc?

Explain This To Me
Can anyone explain to me what is happening in the code below? I have no clue what does or what ^ does.


CDbl(value (2 ^ shift))

Both value and shift are integers.

Please Explain This To Me
the format i'm familiar with is this: txtEnding.text = Format(curInitInv * sngInterest, "$###,##0.00")

but i read this in a book:
Some formats get lengthy, so programmers often declare a string variable and assign the format to the variable. They then use the variable inside the Format() function instead of using the string literal for the format. If you use the same format in several locations within the code, the variable means less typing on your part, and if you ever change the format, you only have to change the format in one place.

Can somebody pls explain this to me and maybe give me an example? Thanks a bunch!!!


Please Explain To Me...
Please explain to me... ...?

Can Someone Explain How To Use ADO
Well basically i'm still new to vb and i need to Build a program using ADO as a Connection for a database.
Can someone help me by explaining it or even better giving me an example. I'd be so thankfull.
PS: my VB for Dummies doesnt explain it. (heheh)

Copyright 2005-08, All rights reserved