Click here to Skip to main content
15,915,869 members
Home / Discussions / Visual Basic
   

Visual Basic

 
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 
It looks like you are missing quotes from the output string.

As you already know, you have to increase the number of quotes if you want to add quotes to the output, you are only doing this in some of your code.

priyaahh wrote:
str_att = "Attribute=" & "1,1,0,1,16711680,2,0,0,1,16711680,0,0,0,0,0,0.5,10,Arial,1"" Attribute2="""


Look at the code after "Attribute=" the opening value only has a single double quote, which will result in Attribute=1,1,....etc. and not Attribute="1,1,...etc.

yet at the end you correctly add the extra quotes. you can always consider user Char(34) in you string generator so you can see where you want to add the quote to the output e.g. (34 is the ASCII value for a double quote, look at asciitable[^])


str_Att = "Attribute1=" & chr(34) & "1,1,0,1,16711680,2,0,0,1,16711680,0,0,0,0,0,0.5,10,Arial,1" & chr(34) & " Attribute2=" & chr(34) & "some value" & chr(34)
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 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 
AnswerRe: vb script code Pin
DaveAuld16-Jul-10 3:38
professionalDaveAuld16-Jul-10 3:38 

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.