Click here to Skip to main content
15,916,019 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Adding Attributes to XML node using VBA Pin
priyaahh17-Jul-10 11:37
priyaahh17-Jul-10 11:37 
GeneralRe: Adding Attributes to XML node using VBA Pin
DaveAuld18-Jul-10 1:43
professionalDaveAuld18-Jul-10 1:43 
GeneralRe: Adding Attributes to XML node using VBA Pin
priyaahh18-Jul-10 7:39
priyaahh18-Jul-10 7:39 
GeneralRe: Adding Attributes to XML node using VBA Pin
DaveAuld18-Jul-10 7:44
professionalDaveAuld18-Jul-10 7:44 
GeneralRe: Adding Attributes to XML node using VBA Pin
priyaahh18-Jul-10 8:51
priyaahh18-Jul-10 8:51 
GeneralRe: Adding Attributes to XML node using VBA Pin
DaveAuld18-Jul-10 9:51
professionalDaveAuld18-Jul-10 9:51 
GeneralRe: Adding Attributes to XML node using VBA Pin
priyaahh18-Jul-10 10:07
priyaahh18-Jul-10 10:07 
GeneralRe: Adding Attributes to XML node using VBA Pin
DaveAuld18-Jul-10 10:51
professionalDaveAuld18-Jul-10 10:51 
You have some wierdness going on around your arrays, either i am missing something or your code is wrong, here are all the NodeStack references;

Line 141: Dim NodeStack() as String

Line 168: ReDim NodeStack(0)

Line 229:
VB
For i = 1 To UBound(Nodes)
    If i <= UBound(NodeStack) Then
        If Trim(Nodes(i)) <> Trim(NodeStack(i)) Then
            'not match
            'MsgBox (Nodes(i) & "," & NodeStack(i))
            MatchAll = False
            Exit For
        End If
    Else
        MatchAll = False
        Exit For
    End If
Next


Up until this point NodeStack does not contain any values, it is a completly empty array, but yet you are trying to compare values etc from it.

It is not until later in your code that you give it any values by NodeStack = Nodes, and that is only if Nodes does actually contain values.
I suspect your code is throwing exceptions, but because you current On Error Resume Next you are not seeing them.
Dave

Don't forget to rate messages!
Find Me On: Web|Facebook|Twitter|LinkedIn
Waving? dave.m.auld[at]googlewave.com


GeneralRe: Adding Attributes to XML node using VBA Pin
priyaahh18-Jul-10 10:59
priyaahh18-Jul-10 10:59 
GeneralRe: Adding Attributes to XML node using VBA Pin
DaveAuld18-Jul-10 11:08
professionalDaveAuld18-Jul-10 11:08 
GeneralRe: Adding Attributes to XML node using VBA Pin
priyaahh18-Jul-10 11:47
priyaahh18-Jul-10 11:47 
GeneralRe: Adding Attributes to XML node using VBA Pin
DaveAuld18-Jul-10 12:10
professionalDaveAuld18-Jul-10 12:10 
GeneralRe: Adding Attributes to XML node using VBA Pin
priyaahh18-Jul-10 13:38
priyaahh18-Jul-10 13:38 
GeneralRe: Adding Attributes to XML node using VBA Pin
DaveAuld18-Jul-10 14:00
professionalDaveAuld18-Jul-10 14:00 
GeneralRe: Adding Attributes to XML node using VBA Pin
priyaahh18-Jul-10 19:44
priyaahh18-Jul-10 19:44 
GeneralRe: Adding Attributes to XML node using VBA Pin
DaveAuld18-Jul-10 22:23
professionalDaveAuld18-Jul-10 22:23 
GeneralRe: Adding Attributes to XML node using VBA Pin
priyaahh18-Jul-10 22:59
priyaahh18-Jul-10 22:59 
GeneralRe: Adding Attributes to XML node using VBA Pin
DaveAuld18-Jul-10 23:17
professionalDaveAuld18-Jul-10 23:17 
GeneralRe: Adding Attributes to XML node using VBA Pin
priyaahh18-Jul-10 23:32
priyaahh18-Jul-10 23:32 
GeneralRe: Adding Attributes to XML node using VBA Pin
DaveAuld18-Jul-10 23:48
professionalDaveAuld18-Jul-10 23:48 
GeneralRe: Adding Attributes to XML node using VBA Pin
priyaahh18-Jul-10 23:59
priyaahh18-Jul-10 23:59 
GeneralRe: Adding Attributes to XML node using VBA Pin
DaveAuld19-Jul-10 0:02
professionalDaveAuld19-Jul-10 0:02 
GeneralRe: Adding Attributes to XML node using VBA Pin
priyaahh21-Jul-10 1:26
priyaahh21-Jul-10 1:26 
GeneralMessage Removed Pin
16-Jul-10 16:56
June 19, 201016-Jul-10 16:56 
GeneralRe: Code for Enrollment System Pin
Richard MacCutchan16-Jul-10 23:11
mveRichard MacCutchan16-Jul-10 23:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.