A Aspire89 Member Licensed User Feb 16, 2009 #1 how to keep the line <text size="80" color="#ffffff"/> to file? :sign0085:
Erel B4X founder Staff member Licensed User Longtime User Feb 16, 2009 #2 Here: B4X: Sub Globals 'Declare the global variables here. End Sub Sub App_Start FileOpen(c1,"1.xml",cWrite,,cASCII) q = Chr(34) 'chr(34) = " FileWrite(c1,"<text size="&q&"80"&q&" color="&q&"#ffffff"&q&"/>") FileClose(c1) End Sub
Here: B4X: Sub Globals 'Declare the global variables here. End Sub Sub App_Start FileOpen(c1,"1.xml",cWrite,,cASCII) q = Chr(34) 'chr(34) = " FileWrite(c1,"<text size="&q&"80"&q&" color="&q&"#ffffff"&q&"/>") FileClose(c1) End Sub
agraham Expert Licensed User Longtime User Feb 17, 2009 #4 Aspire89 said: how to keep the line <text size="80" color="#ffffff"/> to file? :sign0085: Click to expand... B4X: wtr.WriteStartElement("text") wtr.WriteAttributeString("size", "80") wtr.WriteAttributeString("color", "#ffff") wtr.WriteEndElement
Aspire89 said: how to keep the line <text size="80" color="#ffffff"/> to file? :sign0085: Click to expand... B4X: wtr.WriteStartElement("text") wtr.WriteAttributeString("size", "80") wtr.WriteAttributeString("color", "#ffff") wtr.WriteEndElement
A Aspire89 Member Licensed User Feb 17, 2009 #7 agraham, Sorry for the bad English and thank for the help