Advertisement

06.27.2008 at 08:10AM PDT, ID: 23521884
[x]
Attachment Details

rename function issue

Asked by CalmSoul in Visual Basic Programming, Microsoft Visual Basic.Net

Tags: Visual Basic, 2005

I am getting following errors with the code attached

Error      1      Property access must assign to the property or use its value.      
Error      2      Method arguments must be enclosed in parentheses.      
Error      3      Comma, ')', or a valid expression continuation expected.      


passing renamefile ("str1")
Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
Sub RenameFiles(ByVal strFolder As String)
        Dim strFile As String
        Dim strFiles() As String
        Dim f As Integer
        Dim i As Integer
        Dim strFileParts() As String
 
        strFile = Dir$(strFolder & "\*.*")
        Do Until strFile = ""
            ReDim Preserve strFiles(f)
            strFiles(f) = strFile
            f = f + 1
            strFile = Dir$()
        Loop
        For i = 0 To f - 1
            strFileParts = Split(strFiles(i), ".")
            strFileParts(UBound(strFileParts)) = "backup"
        Name strFolder & "\" & strFiles(i) As Join(strFileParts)
        Next i
    End Sub
[+][-]06.27.2008 at 08:18AM PDT, ID: 21884654

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.27.2008 at 08:23AM PDT, ID: 21884723

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.27.2008 at 08:24AM PDT, ID: 21884732

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.27.2008 at 08:25AM PDT, ID: 21884747

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.27.2008 at 08:27AM PDT, ID: 21884762

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.27.2008 at 08:30AM PDT, ID: 21884807

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.27.2008 at 08:31AM PDT, ID: 21884812

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.27.2008 at 08:33AM PDT, ID: 21884833

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]06.27.2008 at 08:35AM PDT, ID: 21884851

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Visual Basic Programming, Microsoft Visual Basic.Net
Tags: Visual Basic, 2005
Sign Up Now!
Solution Provided By: jcoehoorn
Participating Experts: 3
Solution Grade: A
 
 
[+][-]06.27.2008 at 10:09AM PDT, ID: 21885814

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.27.2008 at 10:50AM PDT, ID: 21886146

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.27.2008 at 10:51AM PDT, ID: 21886154

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.27.2008 at 11:09AM PDT, ID: 21886317

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.27.2008 at 12:41PM PDT, ID: 21886988

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628