c#µÄÎÒÖªµÀ£¬¿ÉÊÇvb.netÊÇÔõô±íʾµÄ£¿ Assembly code: Dim node As System.Xml.XmlNode = xmlDoc.SelectSingleNode("root/" & key) 'key½Úµã If node Is Nothing Then '²»´æÔÚ End If
VB.NET code: Dim node As System.Xml.XmlNode = xmlDoc.SelectSingleNode("root/" & key) 'key½Úµã If node Is Nothing Then '²»´æÔÚ End If
Dim node As System.Xml.XmlNode = xmlDoc.SelectSingleNode("//Root/A[@id=" & id & "]") If node IsNot Nothing Then End If ΪÁËÎÊÎÊÌ⣬ ÏȵÄ׬׬
ÎÒÏë°ÑwordÁí´æÎªxmlÖ®ºó£¬ÓÃvb¶ÁÈ¡Õâ¸öxmlµÄÄÚÈÝ£¬ÇëÎÊÈçºÎʵÏÖ£¿ dim f as integer dim b() as byte dim s as string dim L as long f=freefile() open "abc.xml" for binary access read as #f ......
dim a as string,b as string£¬c as string a="¹¤³Ì±àºÅ,µ¥Î»¹¤³ÌÃû³Æ,·Ö²¿¹¤³Ì±àºÅ" b="µ¥Î»¹¤³ÌÃû³Æ" c="µ¥Î»" Ôõô²ÅÄÜÅжϳöa×Ö·û´®ÖдæÔÚb×Ö·û´®£¬¶ø²»´æÔÚc×Ö·û´®