Click here to Skip to main content
15,903,175 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: search between two dates Pin
Dr.Walt Fair, PE4-Nov-10 5:47
professionalDr.Walt Fair, PE4-Nov-10 5:47 
GeneralRe: search between two dates Pin
waner michaud4-Nov-10 6:26
waner michaud4-Nov-10 6:26 
GeneralRe: search between two dates Pin
Dr.Walt Fair, PE4-Nov-10 6:34
professionalDr.Walt Fair, PE4-Nov-10 6:34 
AnswerRe: search between two dates Pin
Scubapro9-Nov-10 19:34
Scubapro9-Nov-10 19:34 
AnswerRe: search between two dates Pin
Luc Pattyn4-Nov-10 6:37
sitebuilderLuc Pattyn4-Nov-10 6:37 
GeneralRe: search between two dates Pin
waner michaud4-Nov-10 7:37
waner michaud4-Nov-10 7:37 
GeneralRe: search between two dates Pin
Luc Pattyn4-Nov-10 8:04
sitebuilderLuc Pattyn4-Nov-10 8:04 
QuestionA stranger question about Selectsinglenode method Pin
sanyexian2-Nov-10 23:42
sanyexian2-Nov-10 23:42 
Hello,everyone! Now I use the method "selectsinglenode" with xpath to search in my XML, I find a stranger question.In my project, when I used this method at first, it didn't get the node that I wanted, so I created a new project to try the xpath, it could got the node now.(The same xpath and same XML file) Then I deleted some controls in my project which was about the method(not the new one), create new, then the method could find the node!
I can't understand it, same xpath, same function,same value,why it happens?Confused | :confused: Confused | :confused:
Hope some one could tell me the reason and give me some suggestion!Thank you!
The function that I used to search a node was like below:
Dim val As String = ""
        Dim xmldoc As New XmlDocument()
        Dim xpath As String
        Try
            xmldoc.Load(Application.StartupPath + "\Flange\Nozzle-Flange-Height.xml")
            Dim xmlnode As XmlNode
            If Not (Standard = "") Then
                xpath = "/Nozzle-Flange-Height/Standard[@value='" + Standard + "']/Flange-type[@type='" + Type + "']/PN[@PN='" + PN + "']/Height[@DN='" + DN + "']"
                xmlnode = xmldoc.SelectSingleNode(xpath)
                If Not xmlnode Is Nothing Then
                    val = xmlnode.InnerText
                Else
                    MsgBox("Could not find!")
                End If
            Else
                val = ""
                MsgBox("Input by yourself!")
            End If
        Catch ex As Exception
            MsgBox(ex.Message)
        End Try
        Return val

QuestionZipping files Pin
crain19812-Nov-10 6:11
crain19812-Nov-10 6:11 
AnswerRe: Zipping files Pin
Dr.Walt Fair, PE2-Nov-10 7:24
professionalDr.Walt Fair, PE2-Nov-10 7:24 
AnswerRe: Zipping files Pin
Eddy Vluggen2-Nov-10 9:26
professionalEddy Vluggen2-Nov-10 9:26 
AnswerRe: Zipping files Pin
AspDotNetDev2-Nov-10 15:11
protectorAspDotNetDev2-Nov-10 15:11 
AnswerRe: Zipping files Pin
DaveAuld3-Nov-10 3:13
professionalDaveAuld3-Nov-10 3:13 
AnswerRe: Zipping files - Use SharpZip Pin
98z2811-Nov-10 7:04
98z2811-Nov-10 7:04 
QuestionVB.Net - Print Queue Pin
directred31-Oct-10 6:41
directred31-Oct-10 6:41 
AnswerRe: VB.Net - Print Queue Pin
Ray Cassick31-Oct-10 7:04
Ray Cassick31-Oct-10 7:04 
GeneralRe: VB.Net - Print Queue Pin
directred31-Oct-10 9:31
directred31-Oct-10 9:31 
GeneralRe: VB.Net - Print Queue Pin
Ray Cassick2-Nov-10 14:42
Ray Cassick2-Nov-10 14:42 
QuestionAdding a password to a file. Pin
crain198130-Oct-10 14:50
crain198130-Oct-10 14:50 
AnswerRe: Adding a password to a file. Pin
DaveAuld30-Oct-10 15:42
professionalDaveAuld30-Oct-10 15:42 
AnswerRe: Adding a password to a file. Pin
Dave Kreskowiak30-Oct-10 16:30
mveDave Kreskowiak30-Oct-10 16:30 
QuestionMS Access 2k7 VBA problem, property will not change Pin
BREdwards29-Oct-10 5:12
BREdwards29-Oct-10 5:12 
AnswerRe: MS Access 2k7 VBA problem, property will not change Pin
ChandraRam30-Oct-10 7:32
ChandraRam30-Oct-10 7:32 
GeneralRe: MS Access 2k7 VBA problem, property will not change Pin
BREdwards30-Oct-10 8:45
BREdwards30-Oct-10 8:45 
QuestionCrystal Report Formula Pin
Nikhil Bhivgade28-Oct-10 23:38
professionalNikhil Bhivgade28-Oct-10 23: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.