Click here to Skip to main content
14,271,874 members

Visual Basic

 
PinnedHOW TO ANSWER A QUESTION PinPopular
Chris Maunder12-Jul-09 22:40
adminChris Maunder12-Jul-09 22:40 
PinnedHow to get an answer to your question PinPopular
Chris Maunder10-Nov-05 16:30
adminChris Maunder10-Nov-05 16:30 
QuestionCount the number of database hit were made Pin
desanti5hrs 54mins ago
memberdesanti5hrs 54mins ago 
QuestionAre these queries doing the same thing Pin
desanti11hrs 54mins ago
memberdesanti11hrs 54mins ago 
QuestionDigital Personal fmd.Serialized and fmd.Deserialized Pin
Member 1404752219-Aug-19 22:22
memberMember 1404752219-Aug-19 22:22 
GeneralRe: Digital Personal fmd.Serialized and fmd.Deserialized Pin
Richard MacCutchan19-Aug-19 23:35
protectorRichard MacCutchan19-Aug-19 23:35 
GeneralRe: Digital Personal fmd.Serialized and fmd.Deserialized Pin
Member 1404752221-Aug-19 21:40
memberMember 1404752221-Aug-19 21:40 
GeneralRe: Digital Personal fmd.Serialized and fmd.Deserialized Pin
Richard MacCutchan21-Aug-19 21:53
protectorRichard MacCutchan21-Aug-19 21:53 
Generalaccess database using vb net Pin
cws_ap15-Aug-19 19:00
membercws_ap15-Aug-19 19:00 
GeneralRe: access database using vb net Pin
Richard MacCutchan15-Aug-19 20:45
protectorRichard MacCutchan15-Aug-19 20:45 
QuestionOpening the "Windows 10 Settings" form from vb.net possible? Pin
Sam Marrocco14-Aug-19 10:35
memberSam 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
memberMember 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)
<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).

'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
memberMember 45239717-Aug-19 2:27 
AnswerRe: I want to make a data selection wizard. Pin
Eddy Vluggen8-Aug-19 1:14
mveEddy Vluggen8-Aug-19 1:14 
GeneralRe: I want to make a data selection wizard. Pin
Member 45239718-Aug-19 21:17
memberMember 45239718-Aug-19 21:17 
SuggestionRe: I want to make a data selection wizard. Pin
Ralf Meier8-Aug-19 23:40
professionalRalf Meier8-Aug-19 23:40 
QuestionBoss Key in Vb .Net Pin
Ahmed Neutron6-Aug-19 9:53
memberAhmed 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
protectorRichard MacCutchan6-Aug-19 20:06 
QuestionSource Convert VB.Net to C# Pin
Baloch_khan6-Aug-19 8:59
memberBaloch_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
mveEddy 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
mveEddy Vluggen6-Aug-19 12:18 

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.