Welcome to Dream.In.Code
Getting VB Help is Easy!

Join 136,545 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 1,850 people online right now. Registration is fast and FREE... Join Now!




File reanmer program

 
Reply to this topicStart new topic

File reanmer program

SNAKE MAN
16 Aug, 2008 - 03:11 AM
Post #1

New D.I.C Head
*

Joined: 15 Aug, 2008
Posts: 5

i have a problem with a new program i am programming
the program :
user choose a file path then write new name for the file then press a button to change the file name
the problem :
when i run the program i have a msgbox says:
compile error:
procedute declaration does not match a descriptionof event or procedure having the name
this is my code :
CODE
Private Sub cmdbrowse_Click()
    cmndialog.ShowOpen
    txtpath.Text = cmndialog.filename
    
End Sub

Private Sub cmdrename_Click()
    Dim filename As String
    Dim oldfilename As String
    newfilename = txtname.Text
    oldfilename = txtpath.Text
    Name oldfilename As newfilename
End Sub


User is offlineProfile CardPM
+Quote Post

SNAKE MAN
RE: File Reanmer Program
16 Aug, 2008 - 03:20 AM
Post #2

New D.I.C Head
*

Joined: 15 Aug, 2008
Posts: 5

this is the form
http://h1.ripway.com/snake123456/form.rar
User is offlineProfile CardPM
+Quote Post

thava
RE: File Reanmer Program
16 Aug, 2008 - 05:21 PM
Post #3

D.I.C Regular
Group Icon

Joined: 17 Apr, 2007
Posts: 450



Thanked: 18 times
Dream Kudos: 50
My Contributions
you create an button array and textbox array
but you used like a single textbox and button
change you code
for Eg.
CODE

textbox(1).text ="good"

User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 10:54PM

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month