Connecting Tech Pros Worldwide Help | Site Map

VB 6.0

Binu C
Guest
 
Posts: n/a
#1: Oct 25 '06

hi all

i have 2 forms (say A & B). form A has an open dialog box. plz tell me
how to capture the whole path of the selected file into a string.Also,
i need to use that string in form B.so how to retain the value of that
string in form B.

also, how to get the complete path of the file from Save As dialog box.

also, how to print a string(not an array) char by char.

plz reply.......

The Grim Reaper
Guest
 
Posts: n/a
#2: Oct 25 '06

re: VB 6.0


This is a .NET newsgroup, not VB v6.

"Binu C" <binucmenon@gmail.comwrote in message
news:1161794441.791551.274630@b28g2000cwb.googlegr oups.com...
Quote:
>
hi all
>
i have 2 forms (say A & B). form A has an open dialog box. plz tell me
how to capture the whole path of the selected file into a string.Also,
i need to use that string in form B.so how to retain the value of that
string in form B.
>
also, how to get the complete path of the file from Save As dialog box.
>
also, how to print a string(not an array) char by char.
>
plz reply.......
>

Scott M.
Guest
 
Posts: n/a
#3: Oct 25 '06

re: VB 6.0


As pointed out, this is a newsgroup for VB .NET, not VB 6.0, but here you
go:
Quote:
i have 2 forms (say A & B). form A has an open dialog box. plz tell me
how to capture the whole path of the selected file into a string.
I assume you mean a CommonDialog control, right? A CDC has a "FileName"
property that returns a string containing the entire path of the selected
file.
Quote:
>Also, i need to use that string in form B.so how to retain the value of
>that
string in form B.
Then declare the variable that is going to hold the file path as public in a
public module that loads before your forms do.
Quote:
also, how to get the complete path of the file from Save As dialog box.
The CommonDialog control is called that because it provides 6 different
dialogs via just one control (Open, Save As, Print, Color, Font, Help).
Since the difference between the Open and the Save As dialogs are minimal,
the same "FileName" property works in both places.
Quote:
>
also, how to print a string(not an array) char by char.
This loop will grab each char (one at a time) and squeez a space in between
them.

Dim s As String
s = "scott"
Dim i As Integer
For i = 1 To Len(s)
Label1.Caption = Label1.Caption & Mid(s, i, 1) & " "
Next i



Binu C
Guest
 
Posts: n/a
#4: Oct 26 '06

re: VB 6.0



thanks buddy...............


Scott M. wrote:
Quote:
As pointed out, this is a newsgroup for VB .NET, not VB 6.0, but here you
go:
>
Quote:
i have 2 forms (say A & B). form A has an open dialog box. plz tell me
how to capture the whole path of the selected file into a string.
>
I assume you mean a CommonDialog control, right? A CDC has a "FileName"
property that returns a string containing the entire path of the selected
file.
>
Quote:
Also, i need to use that string in form B.so how to retain the value of
that
string in form B.
>
Then declare the variable that is going to hold the file path as public in a
public module that loads before your forms do.
>
Quote:
also, how to get the complete path of the file from Save As dialog box.
>
The CommonDialog control is called that because it provides 6 different
dialogs via just one control (Open, Save As, Print, Color, Font, Help).
Since the difference between the Open and the Save As dialogs are minimal,
the same "FileName" property works in both places.
>
Quote:

also, how to print a string(not an array) char by char.
>
This loop will grab each char (one at a time) and squeez a space in between
them.
>
Dim s As String
s = "scott"
Dim i As Integer
For i = 1 To Len(s)
Label1.Caption = Label1.Caption & Mid(s, i, 1) & " "
Next i
Closed Thread


Similar Visual Basic .NET bytes