Click here to Skip to main content
15,886,565 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Digital Personal fmd.Serialized and fmd.Deserialized Pin
Richard MacCutchan19-Aug-19 23:35
mveRichard MacCutchan19-Aug-19 23:35 
GeneralRe: Digital Personal fmd.Serialized and fmd.Deserialized Pin
Member 1404752221-Aug-19 21:40
Member 1404752221-Aug-19 21:40 
GeneralRe: Digital Personal fmd.Serialized and fmd.Deserialized Pin
Richard MacCutchan21-Aug-19 21:53
mveRichard MacCutchan21-Aug-19 21:53 
Generalaccess database using vb net Pin
cws_ap15-Aug-19 19:00
cws_ap15-Aug-19 19:00 
GeneralRe: access database using vb net Pin
Richard MacCutchan15-Aug-19 20:45
mveRichard MacCutchan15-Aug-19 20:45 
QuestionOpening the "Windows 10 Settings" form from vb.net possible? Pin
Sam Marrocco14-Aug-19 10:35
Sam Marrocco14-Aug-19 10:35 
AnswerRe: Opening the "Windows 10 Settings" form from vb.net possible? PinPopular
Richard Deeming15-Aug-19 2:10
mveRichard Deeming15-Aug-19 2:10 
QuestionHow do I copy specific node with children from one document into a new document? Pin
Member 1140330410-Aug-19 6:40
Member 1140330410-Aug-19 6:40 
I am really stuck on this one. I have ObjXmlSimpleTypeDoc object which have two EnumerationValues. Each of EnumerationValue have child nodes.

I want to got values from child nodes of the correct EnumerationValue node.

To find the correct EnumerationValue I use the value in the variable strCourtNCIC. If the value in strCourtNCIC matches a EnumerationValue @code, that is the EnumerationValue I need. For this question strCourtNCIC hold a value MN010015J.

How do I do this in VB.NET?

Here is the objXmlSimpleTypeDoc object where I need to find EnumerationValue with @code = strCourtNCIC (MN010015J)
XML
<SimpleTypeCompanion enumerates="CourtLocationTextType">
	<EnumerationValue code="MN010015J">
		<Text>Emily County</Text>
		<AssociatedValue type="MNCISNodeID">
			<Text>111</Text>
		</AssociatedValue>
		<AssociatedValue type="CountyName">
			<Text>Emily</Text>
		</AssociatedValue>
		<AssociatedValue type="PhoneNumber">
			<Text>724-820-7123</Text>
		</AssociatedValue>
	</EnumerationValue>
	<EnumerationValue code="DC19DAKDC">
		<Text>Pope County</Text>
		<AssociatedValue type="MNCISNodeID">
			<Text>112</Text>
		</AssociatedValue>
		<AssociatedValue type="CountyName">
			<Text>Pope</Text>
		</AssociatedValue>
	</EnumerationValue>
</SimpleTypeCompanion>


Here is the VB.NET code that I need help with to just get the correct EnumerationValue with @code that matches strCourtNCIC (MN010015J).

VB
'CourtNCIC 
strCourtNCIC = objXmlMNCISData.DocumentElement.SelectSingleNode("Case/Court/CourtNCIC").InnerText
'Access the CourtLocationTextType simple type. 
objXmlSimpleTypeDoc = Msc.Integration.CourtXml.Library.v4.SimpleType.GetCompanionFile("CourtLocationTextType")
'Get the correct EnumerationValue node that has @code =MN010015J string value
objXmlEnumerationValueNode = objXmlSimpleTypeDoc.SelectSingleNode("/SimpleTypeCompanion/EnumerationValue[@code=" + strCourtORI + "]/@code")


modified 12-Aug-19 11:56am.

QuestionI want to make a data selection wizard. Pin
Member 45239717-Aug-19 2:27
Member 45239717-Aug-19 2:27 
AnswerRe: I want to make a data selection wizard. Pin
Eddy Vluggen8-Aug-19 1:14
professionalEddy Vluggen8-Aug-19 1:14 
GeneralRe: I want to make a data selection wizard. Pin
Member 45239718-Aug-19 21:17
Member 45239718-Aug-19 21:17 
SuggestionRe: I want to make a data selection wizard. Pin
Ralf Meier8-Aug-19 23:40
mveRalf Meier8-Aug-19 23:40 
QuestionBoss Key in Vb .Net Pin
Ahmed Neutron6-Aug-19 9:53
Ahmed Neutron6-Aug-19 9:53 
AnswerRe: Boss Key in Vb .Net Pin
ZurdoDev6-Aug-19 10:02
professionalZurdoDev6-Aug-19 10:02 
AnswerRe: Boss Key in Vb .Net Pin
Richard MacCutchan6-Aug-19 20:06
mveRichard MacCutchan6-Aug-19 20:06 
QuestionSource Convert VB.Net to C# Pin
Baloch_khan6-Aug-19 8:59
Baloch_khan6-Aug-19 8:59 
AnswerRe: Source Convert VB.Net to C# Pin
ZurdoDev6-Aug-19 10:03
professionalZurdoDev6-Aug-19 10:03 
GeneralRe: Source Convert VB.Net to C# Pin
Eddy Vluggen6-Aug-19 12:20
professionalEddy Vluggen6-Aug-19 12:20 
GeneralRe: Source Convert VB.Net to C# Pin
ZurdoDev6-Aug-19 14:59
professionalZurdoDev6-Aug-19 14:59 
AnswerRe: Source Convert VB.Net to C# Pin
Eddy Vluggen6-Aug-19 12:18
professionalEddy Vluggen6-Aug-19 12:18 
QuestionSource Convert VB.Net to C# Pin
Baloch_khan6-Aug-19 8:58
Baloch_khan6-Aug-19 8:58 
Questionself talking hangman vb console game tutorial Pin
StarTrekCafe29-Jul-19 18:48
StarTrekCafe29-Jul-19 18:48 
AnswerRe: self talking hangman vb console game tutorial Pin
Afzaal Ahmad Zeeshan30-Jul-19 5:32
professionalAfzaal Ahmad Zeeshan30-Jul-19 5:32 
GeneralRe: self talking hangman vb console game tutorial Pin
StarTrekCafe30-Jul-19 17:56
StarTrekCafe30-Jul-19 17:56 
GeneralRe: self talking hangman vb console game tutorial Pin
Dave Kreskowiak31-Jul-19 5:37
mveDave Kreskowiak31-Jul-19 5:37 

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.