And what is that?
vbYesNo & vbQuestion
??
Its not C++ !
Please use vbYesNo Or vbQuestion
D
Doker
@Doker
0
Reputation
2
Posts
32
Profile views
0
Followers
0
Following
Best posts made by Doker
This user hasn't posted anything yet.
Latest posts made by Doker
-
RE: VBA programmers aren’t that stupid, it the study material
-
RE: Vbscript ported to vb.net, any chance of better code?
1. Don't use Long. Long is 64-bit now. You want 32-bit Integer use "Integer" <=> "Int32" (alias)
2. p is an array. Arrays in vb.et ar object. Ubound is ok but it isn't portable. You will find p.Lenght (or p.Count in collections)
3. "" <=> String.Empty
4. Use For a As Integer . Declaring type in loop may give better performance
5. StrComp is the same as "=" and btw: you will find p(b).Compare(p(b+1))
6. You don't have to use brackets in If.
7. Using on error is like surrounding each line with Try Catch
8. Array.Sort like p.Sort can do the think for you.
9. DoingReturn True
Exit Function
have no sense cos exit function will never be evaluated. Fortunately the compiler knows that and erases that line in compliation.