mcelligott
Programmer
Hello All,
I have the following code:
I would like to re-write it using a Select Case statement because I think it would be more efficient. I am having difficulty getting my brain to come up with the correct way to do it because of the variable in the parenthesis.
Any thoughts?
Bob
I have the following code:
Code:
If FSO.FileExists(strServerPath) = True Then
Call pfECDServerReLink
End If
If FSO.FileExists(strServerPath) = False Then
If FSO.FileExists(strMCUPath) = True Then
Call pfMCUReLink
End If
If FSO.FileExists(strMCUPath) = False Then
If FSO.FileExists(strAltServerPath) = True Then
Call pfAltServerReLink
End If
If FSO.FileExists(strAltServerPath) = False Then
If FSO.FileExists(strVPNPath) = True Then
Call pfVPNRelink
End If
If FSO.FileExists(strVPNPath) = False Then
If FSO.FileExists(strGFDPath) = True Then
Call pfGFDReLink
End If
If FSO.FileExists(strGFDPath) = False Then
If FSO.FileExists(strPerintonPath) = True Then
Call pfPerintonReLink
End If
If FSO.FileExists(strPerintonPath) = False Then
Call pfLocalReLink
End If
End If
End If
End If
End If
End If
I would like to re-write it using a Select Case statement because I think it would be more efficient. I am having difficulty getting my brain to come up with the correct way to do it because of the variable in the parenthesis.
Any thoughts?
Bob