Click here to Skip to main content
15,891,136 members
Home / Discussions / Visual Basic
   

Visual Basic

 
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 
Dave,
<pre attribute="vb">
Yes I did debut and breakpoints.

Actually I have to keep getNodeAttribute function in the first set not in the second set. I examined that.

During call of the above function i print the var in immediate window. it is printing like :

Attribute=1,1,0,1,16711680,2,0,0,1,16711680,0,0,0,0,0,0.5,10,Arial,1" Attribute2="

but when it go back to the main line from where are calling the function it is not returning anything..

Hope u might got my explanation..pls help

This is my function:

Function getNodeAttributes(node As String) As String
dim str_att as string
If node = "Policy_Years" Then
str_att = "Attribute=" &amp; "1,1,0,1,16711680,2,0,0,1,16711680,0,0,0,0,0,0.5,10,Arial,1"" Attribute2="""

ElseIf node = "Loss_Descriptions" Then
str_att = "Attribute=" &amp; "1,1,0,1,16711680,2,0,0,1,16711680,0,0,0,0,0,0.5,10,Arial,1"" Attribute2="""
Debug.Print str_att

End If
End Function

Calling the above function from the below line:

strXML = strXML &amp; "&lt;" &amp; Nodes(t) &amp; getNodeAttributes(Nodes(t)) &amp; "&gt;"


I wanted output like:

&lt;Adjusted_Loss_PD Attribute="1,1,0,1,16711680,2,0,0,1,16711680,0,0,0,0,0,0.5,10,Arial,1" Attribute2=""&gt;
&lt;Adjusted_Loss_PD-1 /&gt;
&lt;Adjusted_Loss_PD-2 /&gt;
&lt;Adjusted_Loss_PD-3 /&gt;
&lt;Adjusted_Loss_PD-4 /&gt;
&lt;Adjusted_Loss_PD-5 /&gt;
&lt;Adjusted_Loss_PD-6 /&gt;
&lt;Adjusted_Loss_PD-7 /&gt;
&lt;Adjusted_Loss_PD-8 /&gt;
&lt;Adjusted_Loss_PD-9 /&gt;
&lt;Adjusted_Loss_PD-10 /&gt;
&lt;/Adjusted_Loss_PD&gt;


</pre>
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 
GeneralRe: Code for Enrollment System [modified] Pin
Luc Pattyn16-Jul-10 23:29
sitebuilderLuc Pattyn16-Jul-10 23:29 
GeneralRe: Code for Enrollment System Pin
DaveAuld17-Jul-10 1:33
professionalDaveAuld17-Jul-10 1:33 
QuestionHow can use treenode's checkbox to control other controls whether are visible or not? Pin
sanyexian15-Jul-10 21:05
sanyexian15-Jul-10 21:05 
AnswerRe: How can use treenode's checkbox to control other controls whether are visible or not? Pin
Estys16-Jul-10 0:57
Estys16-Jul-10 0:57 
GeneralRe: How can use treenode's checkbox to control other controls whether are visible or not? Pin
sanyexian16-Jul-10 22:57
sanyexian16-Jul-10 22:57 
GeneralRe: How can use treenode's checkbox to control other controls whether are visible or not? Pin
Estys17-Jul-10 1:29
Estys17-Jul-10 1:29 
Questionvb script code Pin
henkbongers15-Jul-10 20:42
henkbongers15-Jul-10 20:42 
AnswerRe: vb script code Pin
Eddy Vluggen16-Jul-10 1:24
professionalEddy Vluggen16-Jul-10 1:24 
AnswerRe: vb script code PinPopular
DaveAuld16-Jul-10 2:29
professionalDaveAuld16-Jul-10 2:29 
GeneralRe: vb script code Pin
DaveAuld16-Jul-10 3:58
professionalDaveAuld16-Jul-10 3:58 
GeneralRe: vb script code Pin
Eddy Vluggen16-Jul-10 4:49
professionalEddy Vluggen16-Jul-10 4:49 

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.