|
Did you buy this third-party control?? I'm asking this because some third-party control "unregistered version" can't be used in release mode..
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
"Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
|
|
|
|
|
I want to access to the complex script fonts in word project.
Is there any property or class that contains this list?
|
|
|
|
|
I have a typical need in which I want to lock a file so that no software can access it, not even copy it.
Any ideas as to how I can do this?
TIA
|
|
|
|
|
I think you just need to open this file from your program. then, no software can access it until you close this file from your program.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
"Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
|
|
|
|
|
But still we can copy that file..
Michael is right that if we open file through program no one can
access it but it can be copied...
rahul kulkarni
|
|
|
|
|
Not true.
You can open the file in a way that denies other processes read and write access, so it can't be read for copying.
The problem is as soon as your program ends or gets killed, the file is free-for-all again.
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
Hi friends,
I have a requirement to send Messages to Mobile devices? I am new to this technology.. what is the namespace used for this?
can we import any buit in components?
How we know the providers and how we can contact with them?
How can we do it in c#?
If any one has on idea regarding this, send me the links for me
if possible send me a code for me.
thanks in advance
G. Satish
|
|
|
|
|
|
I already seen your response Previously.
It is a website which provide SMS Gateway. But i need how to implement that in wmy application??
|
|
|
|
|
Satish - Developer wrote: if possible send me a code for me
007
Once you have mastered the ability to turn yourself invisible at will, and to deflect bullets with your hair, you will be ready to come back here to the lounge and post programming questions.Only at this point will you be able to dodge the fireballs that are going to come your way. - Pete O'Hanlon
|
|
|
|
|
I didn't understand single step, what u said? what is my question?
what is your answer.?
|
|
|
|
|
Probably off-topic BUT has anyone else come accross the situation when you close a window in design view that the window clears and then VS2005 freezes requiring a forced close of VS2005?
It's starting to happen very frequently and I was wondering if anyone could suggest where I should start looking for the cause.
TIA...
Glen Harvy
|
|
|
|
|
I guess, your memory is low or your harddisk is nearly full.. I'm using the VS 2005 everyday and I don't have that problem.. Is there any third-party control on your window form??
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
"Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
|
|
|
|
|
I will post my XML and the class to be de-serialized to.I am having issues with an array not being populated,even though the data is in the xml file.It sets this public property to null.I need help with the following segment of code.View line 25 or so in the .net code area(NM1Loop area)Notice that I have an array of xml items named NM1Loop and inside of that and array of SegmentRef items.Need to get this populated......
.XML In question of de-serializing
<Transaction-Set-Control>
<SegmentRef Pos="5" ID="ST" Description="Transaction Set Header">
<Element Pos="01" ID="143" Description="Transaction Set Identifier Code" Type="ID" MinLength="3" MaxLength="3" Value="837"/>
<Element Pos="02" ID="329" Description="Transaction Set Control Number" Type="AN" MinLength="4" MaxLength="9" Value="0001"/>
</SegmentRef>
<SegmentRef Pos="10" ID="BHT" Description="Beginning of Hierarchical Transaction">
<Element Pos="01" ID="1005" Description="Hierarchical Structure Code" Type="ID" MinLength="4" MaxLength="4" Value="0019"/>
<Element Pos="02" ID="353" Description="Transaction Set Purpose Code" Type="ID" MinLength="2" MaxLength="2" Value="00"/>
<Element Pos="03" ID="127" Description="Reference Identification" Type="AN" MinLength="1" MaxLength="30" Value="9999009999061010010000100001"/>
<Element Pos="04" ID="373" Description="Date" Type="DT" MinLength="8" MaxLength="8" Value="20071114"/>
<Element Pos="05" ID="337" Description="Time" Type="TM" MinLength="4" MaxLength="8" Value="0847"/>
<Element Pos="06" ID="640" Description="Transaction Type Code" Type="ID" MinLength="2" MaxLength="2" Value="CH"/>
</SegmentRef>
<SegmentRef Pos="15" ID="REF" Description="Reference Identification">
<Element Pos="01" ID="128" Description="Reference Identification Qualifier" Type="ID" MinLength="2" MaxLength="3" Value="87"/>
<Element Pos="02" ID="127" Description="Reference Identification" Type="AN" MinLength="1" MaxLength="30" Value="004010X098DA1"/>
</SegmentRef>
<NM1-LOOP>
<SegmentRef Pos="20" ID="NM1" Description="Individual or Organizational Name">
<Element Pos="01" ID="98" Description="Entity Identifier Code" Type="ID" MinLength="2" MaxLength="3" Value="41"/>
<Element Pos="02" ID="1065" Description="Entity Type Qualifier" Type="ID" MinLength="1" MaxLength="1" Value="2"/>
<Element Pos="03" ID="1035" Description="Name Last or Organization Name" Type="AN" MinLength="1" MaxLength="35" Value="SOMEORG"/>
<Element Pos="08" ID="66" Description="Identification Code Qualifier" Type="ID" MinLength="1" MaxLength="2" Value="46"/>
<Element Pos="09" ID="67" Description="Identification Code" Type="AN" MinLength="2" MaxLength="80" Value="901263473"/>
</SegmentRef>
<SegmentRef Pos="45" ID="PER" Description="Administrative Communications Contact">
<Element Pos="01" ID="366" Description="Contact Function Code" Type="ID" MinLength="2" MaxLength="2" Value="IC"/>
<Element Pos="02" ID="93" Description="Name" Type="AN" MinLength="1" MaxLength="60" Value="Company"/>
<Element Pos="03" ID="365" Description="Communication Number Qualifier" Type="ID" MinLength="2" MaxLength="2" Value="TE"/>
<Element Pos="04" ID="364" Description="Communication Number" Type="AN" MinLength="1" MaxLength="80" Value="9994486262"/>
</SegmentRef>
</NM1-LOOP>
<NM1-LOOP>
<SegmentRef Pos="20" ID="NM1" Description="Individual or Organizational Name">
<Element Pos="01" ID="98" Description="Entity Identifier Code" Type="ID" MinLength="2" MaxLength="3" Value="40"/>
<Element Pos="02" ID="1065" Description="Entity Type Qualifier" Type="ID" MinLength="1" MaxLength="1" Value="2"/>
<Element Pos="03" ID="1035" Description="Name Last or Organization Name" Type="AN" MinLength="1" MaxLength="35" Value="Company"/>
<Element Pos="08" ID="66" Description="Identification Code Qualifier" Type="ID" MinLength="1" MaxLength="2" Value="46"/>
<Element Pos="09" ID="67" Description="Identification Code" Type="AN" MinLength="2" MaxLength="80" Value="BUSINESS"/>
</SegmentRef>
</NM1-LOOP>
1 [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.42")]
2 [System.SerializableAttribute()]
3 [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
4 public partial class EDIX124010InterchangeControlFunctionalGroupControlTransactionSetControlHLLOOP {
5
6 private SegmentRef[] segmentRefField;
7
8 private NM1LOOP[] nM1LOOPField;
9
10 private EDIX124010InterchangeControlFunctionalGroupControlTransactionSetControlHLLOOPCLMLOOP[] cLMLOOPField;
11
12 /// <remarks/>
13 [System.Xml.Serialization.XmlElementAttribute("SegmentRef")]
14 public SegmentRef[] SegmentRef {
15 get {
16 return this.segmentRefField;
17 }
18 set {
19 this.segmentRefField = value;
20 }
21 }
22
23 /// <remarks/>
24 /**********************************************
25 PROBLEM HERE
26 ***********************************************************/
27 [System.Xml.Serialization.XmlArray("NM1-LOOP")]
28 [System.Xml.Serialization.XmlArrayItemAttribute("SegmentRef", IsNullable=false)]
29 public NM1LOOP[] NM1LOOP {
30 get {
31 return this.nM1LOOPField;
32 }
33 set {
34 this.nM1LOOPField = value;
35 }
36 }
37
38 /// <remarks/>
39 [System.Xml.Serialization.XmlElementAttribute("CLM-LOOP", Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
40 public EDIX124010InterchangeControlFunctionalGroupControlTransactionSetControlHLLOOPCLMLOOP[] CLMLOOP {
41 get {
42 return this.cLMLOOPField;
43 }
44 set {
45 this.cLMLOOPField = value;
46 }
47 }
48 }
49
full source CS File
1 namespace Company.Schemas {
2 using System.Xml.Serialization;
3
4
5 /// <remarks/>
6 [System.SerializableAttribute()]
7 [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
8 [System.Xml.Serialization.XmlRootAttribute(Namespace="", IsNullable=false)]
9 public partial class SegmentRef {
10
11 private Element[] elementField;
12
13 //private SegmentRefComposite[] compositeField;
14
15 private string posField;
16
17 private string idField;
18
19 private string descriptionField;
20
21 /// <remarks/>
22 [System.Xml.Serialization.XmlElementAttribute("Element")]
23 public Element[] Element {
24 get {
25 return this.elementField;
26 }
27 set {
28 this.elementField = value;
29 }
30 }
31
32
33 /// <remarks/>
34 [System.Xml.Serialization.XmlAttributeAttribute()]
35 public string Pos {
36 get {
37 return this.posField;
38 }
39 set {
40 this.posField = value;
41 }
42 }
43
44 /// <remarks/>
45 [System.Xml.Serialization.XmlAttributeAttribute()]
46 public string ID {
47 get {
48 return this.idField;
49 }
50 set {
51 this.idField = value;
52 }
53 }
54
55 /// <remarks/>
56 [System.Xml.Serialization.XmlAttributeAttribute()]
57 public string Description {
58 get {
59 return this.descriptionField;
60 }
61 set {
62 this.descriptionField = value;
63 }
64 }
65 }
66
67 /// <remarks/>
68 [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.42")]
69 [System.SerializableAttribute()]
70 [System.Diagnostics.DebuggerStepThroughAttribute()]
71 [System.ComponentModel.DesignerCategoryAttribute("code")]
72 [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
73 [System.Xml.Serialization.XmlRootAttribute(Namespace="", IsNullable=false)]
74 public partial class Element {
75
76 private string posField;
77
78 private string idField;
79
80 private string descriptionField;
81
82 private string typeField;
83
84 private string minLengthField;
85
86 private string maxLengthField;
87
88 private string valueField;
89
90 /// <remarks/>
91 [System.Xml.Serialization.XmlAttributeAttribute()]
92 public string Pos {
93 get {
94 return this.posField;
95 }
96 set {
97 this.posField = value;
98 }
99 }
100
101 /// <remarks/>
102 [System.Xml.Serialization.XmlAttributeAttribute()]
103 public string ID {
104 get {
105 return this.idField;
106 }
107 set {
108 this.idField = value;
109 }
110 }
111
112 /// <remarks/>
113 [System.Xml.Serialization.XmlAttributeAttribute()]
114 public string Description {
115 get {
116 return this.descriptionField;
117 }
118 set {
119 this.descriptionField = value;
120 }
121 }
122
123 /// <remarks/>
124 [System.Xml.Serialization.XmlAttributeAttribute()]
125 public string Type {
126 get {
127 return this.typeField;
128 }
129 set {
130 this.typeField = value;
131 }
132 }
133
134 /// <remarks/>
135 [System.Xml.Serialization.XmlAttributeAttribute()]
136 public string MinLength {
137 get {
138 return this.minLengthField;
139 }
140 set {
141 this.minLengthField = value;
142 }
143 }
144
145 /// <remarks/>
146 [System.Xml.Serialization.XmlAttributeAttribute()]
147 public string MaxLength {
148 get {
149 return this.maxLengthField;
150 }
151 set {
152 this.maxLengthField = value;
153 }
154 }
155
156 /// <remarks/>
157 [System.Xml.Serialization.XmlAttributeAttribute()]
158 public string Value {
159 get {
160 return this.valueField;
161 }
162 set {
163 this.valueField = value;
164 }
165 }
166 }
167
168 /// <remarks/>
169 [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.42")]
170 [System.SerializableAttribute()]
171 [System.Diagnostics.DebuggerStepThroughAttribute()]
172 [System.ComponentModel.DesignerCategoryAttribute("code")]
173 [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
174 public partial class SegmentRefComposite {
175
176 private Element[] elementField;
177
178 private string posField;
179
180 private string idField;
181
182 private string descriptionField;
183
184 /// <remarks/>
185 [System.Xml.Serialization.XmlElementAttribute("Element")]
186 public Element[] Element {
187 get {
188 return this.elementField;
189 }
190 set {
191 this.elementField = value;
192 }
193 }
194
195 /// <remarks/>
196 [System.Xml.Serialization.XmlAttributeAttribute()]
197 public string Pos {
198 get {
199 return this.posField;
200 }
201 set {
202 this.posField = value;
203 }
204 }
205
206 /// <remarks/>
207 [System.Xml.Serialization.XmlAttributeAttribute()]
208 public string ID {
209 get {
210 return this.idField;
211 }
212 set {
213 this.idField = value;
214 }
215 }
216
217 /// <remarks/>
218 [System.Xml.Serialization.XmlAttributeAttribute()]
219 public string Description {
220 get {
221 return this.descriptionField;
222 }
223 set {
224 this.descriptionField = value;
225 }
226 }
227 }
228
229 /// <remarks/>
230 [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.42")]
231 [System.SerializableAttribute()]
232 [System.Diagnostics.DebuggerStepThroughAttribute()]
233 [System.ComponentModel.DesignerCategoryAttribute("code")]
234 [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
235 [System.Xml.Serialization.XmlRootAttribute("NM1-LOOP", Namespace="", IsNullable=false)]
236 public partial class NM1LOOP {
237
238 private SegmentRef[] segmentRefField;
239
240 /// <remarks/>
241 [System.Xml.Serialization.XmlElementAttribute("SegmentRef")]
242 public SegmentRef[] SegmentRef {
243 get {
244 return this.segmentRefField;
245 }
246 set {
247 this.segmentRefField = value;
248 }
249 }
250 }
251
252 /// <remarks/>
253 [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.42")]
254 [System.SerializableAttribute()]
255 [System.Diagnostics.DebuggerStepThroughAttribute()]
256 [System.ComponentModel.DesignerCategoryAttribute("code")]
257 [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
258 [System.Xml.Serialization.XmlRootAttribute("EDI-X12-4010", Namespace="", IsNullable=false)]
259 public partial class EDIX124010 {
260
261 private EDIX124010InterchangeControl[] itemsField;
262
263 /// <remarks/>
264 //[System.Xml.Serialization.XmlElementAttribute("Element", typeof(Element))]
265 [System.Xml.Serialization.XmlElementAttribute("Interchange-Control", typeof(EDIX124010InterchangeControl), Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
266 //[System.Xml.Serialization.XmlElementAttribute("NM1-LOOP", typeof(NM1LOOP))]
267 //[System.Xml.Serialization.XmlElementAttribute("SegmentRef", typeof(SegmentRef))]
268 public EDIX124010InterchangeControl[] Items
269 {
270 get {
271 return this.itemsField;
272 }
273 set {
274 this.itemsField = value;
275 }
276 }
277 }
278
279 /// <remarks/>
280 [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.42")]
281 [System.SerializableAttribute()]
282 [System.Diagnostics.DebuggerStepThroughAttribute()]
283 [System.ComponentModel.DesignerCategoryAttribute("code")]
284 [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
285 public partial class EDIX124010InterchangeControl {
286
287 private SegmentRef[] segmentRefField;
288
289 private EDIX124010InterchangeControlFunctionalGroupControl[] functionalGroupControlField;
290
291 /// <remarks/>
292 [System.Xml.Serialization.XmlElementAttribute("SegmentRef")]
293 public SegmentRef[] SegmentRef {
294 get {
295 return this.segmentRefField;
296 }
297 set {
298 this.segmentRefField = value;
299 }
300 }
301
302 /// <remarks/>
303 [System.Xml.Serialization.XmlElementAttribute("Functional-Group-Control", Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
304 public EDIX124010InterchangeControlFunctionalGroupControl[] FunctionalGroupControl {
305 get {
306 return this.functionalGroupControlField;
307 }
308 set {
309 this.functionalGroupControlField = value;
310 }
311 }
312 }
313
314 /// <remarks/>
315 [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.42")]
316 [System.SerializableAttribute()]
317 [System.Diagnostics.DebuggerStepThroughAttribute()]
318 [System.ComponentModel.DesignerCategoryAttribute("code")]
319 [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
320 public partial class EDIX124010InterchangeControlFunctionalGroupControl {
321
322 private SegmentRef[] segmentRefField;
323
324 private EDIX124010InterchangeControlFunctionalGroupControlTransactionSetControl[] transactionSetControlField;
325
326 /// <remarks/>
327 [System.Xml.Serialization.XmlElementAttribute("SegmentRef")]
328 public SegmentRef[] SegmentRef {
329 get {
330 return this.segmentRefField;
331 }
332 set {
333 this.segmentRefField = value;
334 }
335 }
336
337 /// <remarks/>
338 [System.Xml.Serialization.XmlElementAttribute("Transaction-Set-Control", Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
339 public EDIX124010InterchangeControlFunctionalGroupControlTransactionSetControl[] TransactionSetControl {
340 get {
341 return this.transactionSetControlField;
342 }
343 set {
344 this.transactionSetControlField = value;
345 }
346 }
347 }
348
349 /// <remarks/>
350 [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.42")]
351 [System.SerializableAttribute()]
352 [System.Diagnostics.DebuggerStepThroughAttribute()]
353 [System.ComponentModel.DesignerCategoryAttribute("code")]
354 [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
355 public partial class EDIX124010InterchangeControlFunctionalGroupControlTransactionSetControl {
356
357 private SegmentRef[] segmentRefField;
358
359 private NM1LOOP[] nM1LOOPField;
360
361 private EDIX124010InterchangeControlFunctionalGroupControlTransactionSetControlHLLOOP[] hLLOOPField;
362
363 /// <remarks/>
364 [System.Xml.Serialization.XmlElementAttribute("SegmentRef")]
365 public SegmentRef[] SegmentRef {
366 get {
367 return this.segmentRefField;
368 }
369 set {
370 this.segmentRefField = value;
371 }
372 }
373
374 /// <remarks/>
375 [System.Xml.Serialization.XmlArrayAttribute("NM1-LOOP")]
376 [System.Xml.Serialization.XmlArrayItemAttribute("SegmentRef", typeof(NM1LOOP), IsNullable=false)]
377 public NM1LOOP[] NM1LOOP {
378 get {
379 return this.nM1LOOPField;
380 }
381 set {
382 this.nM1LOOPField = value;
383 }
384 }
385
386 /// <remarks/>
387 [System.Xml.Serialization.XmlElementAttribute("HL-LOOP", Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
388 public EDIX124010InterchangeControlFunctionalGroupControlTransactionSetControlHLLOOP[] HLLOOP {
389 get {
390 return this.hLLOOPField;
391 }
392 set {
393 this.hLLOOPField = value;
394 }
395 }
396 }
397
398 /// <remarks/>
399 [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.42")]
400 [System.SerializableAttribute()]
401 [System.Diagnostics.DebuggerStepThroughAttribute()]
402 [System.ComponentModel.DesignerCategoryAttribute("code")]
403 [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
404 public partial class EDIX124010InterchangeControlFunctionalGroupControlTransactionSetControlHLLOOP {
405
406 private SegmentRef[] segmentRefField;
407
408 private NM1LOOP[] nM1LOOPField;
409
410 private EDIX124010InterchangeControlFunctionalGroupControlTransactionSetControlHLLOOPCLMLOOP[] cLMLOOPField;
411
412 /// <remarks/>
413 [System.Xml.Serialization.XmlElementAttribute("SegmentRef")]
414 public SegmentRef[] SegmentRef {
415 get {
416 return this.segmentRefField;
417 }
418 set {
419 this.segmentRefField = value;
420 }
421 }
422
423 /// <remarks/>
424 [System.Xml.Serialization.XmlArray("NM1-LOOP")]
425 [System.Xml.Serialization.XmlArrayItemAttribute("SegmentRef", IsNullable=false)]
426 public NM1LOOP[] NM1LOOP {
427 get {
428 return this.nM1LOOPField;
429 }
430 set {
431 this.nM1LOOPField = value;
432 }
433 }
434
435 /// <remarks/>
436 [System.Xml.Serialization.XmlElementAttribute("CLM-LOOP", Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
437 public EDIX124010InterchangeControlFunctionalGroupControlTransactionSetControlHLLOOPCLMLOOP[] CLMLOOP {
438 get {
439 return this.cLMLOOPField;
440 }
441 set {
442 this.cLMLOOPField = value;
443 }
444 }
445 }
446
447 /// <remarks/>
448 [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.42")]
449 [System.SerializableAttribute()]
450 [System.Diagnostics.DebuggerStepThroughAttribute()]
451 [System.ComponentModel.DesignerCategoryAttribute("code")]
452 [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
453 public partial class EDIX124010InterchangeControlFunctionalGroupControlTransactionSetControlHLLOOPCLMLOOP {
454
455 private SegmentRef[] segmentRefField;
456
457 private SegmentRef[][] lXLOOPField;
458
459 /// <remarks/>
460 [System.Xml.Serialization.XmlElementAttribute("SegmentRef")]
461 public SegmentRef[] SegmentRef {
462 get {
463 return this.segmentRefField;
464 }
465 set {
466 this.segmentRefField = value;
467 }
468 }
469
470 /// <remarks/>
471 [System.Xml.Serialization.XmlArrayAttribute("LX-LOOP", Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
472 [System.Xml.Serialization.XmlArrayItemAttribute("SegmentRef", typeof(SegmentRef[]), IsNullable=false)]
473 public SegmentRef[][] LXLOOP {
474 get {
475 return this.lXLOOPField;
476 }
477 set {
478 this.lXLOOPField = value;
479 }
480 }
481 }
482 }
483
Full XML file
<EDI-X12-4010>
<Interchange-Control>
<SegmentRef Pos="0" ID="ISA" Description="Interchange Control Header">
<Element Pos="01" ID="I01" Description="Authorization Information Qualifier" Type="ID" MinLength="2" MaxLength="2" Value="00"/>
<Element Pos="02" ID="I02" Description="Authorization Information" Type="AN" MinLength="10" MaxLength="10" Value=" "/>
<Element Pos="03" ID="I03" Description="Security Information Qualifier" Type="ID" MinLength="2" MaxLength="2" Value="00"/>
<Element Pos="04" ID="I04" Description="Security Information" Type="AN" MinLength="10" MaxLength="10" Value=" "/>
<Element Pos="05" ID="I05" Description="Interchange ID Qualifier" Type="ID" MinLength="2" MaxLength="2" Value="30"/>
<Element Pos="06" ID="I06" Description="Interchange Sender ID" Type="AN" MinLength="15" MaxLength="15" Value="999963473 "/>
<Element Pos="07" ID="I05" Description="Interchange ID Qualifier" Type="ID" MinLength="2" MaxLength="2" Value="ZZ"/>
<Element Pos="08" ID="I07" Description="Interchange Receiver ID" Type="AN" MinLength="15" MaxLength="15" Value="COMPANY "/>
<Element Pos="09" ID="I08" Description="Interchange Date" Type="DT" MinLength="6" MaxLength="6" Value="071114"/>
<Element Pos="10" ID="I09" Description="Interchange Time" Type="TM" MinLength="4" MaxLength="4" Value="0847"/>
<Element Pos="11" ID="I10" Description="Interchange Control Standards Identifier" Type="ID" MinLength="1" MaxLength="1" Value="U"/>
<Element Pos="12" ID="I11" Description="Interchange Control Version Number" Type="ID" MinLength="5" MaxLength="5" Value="00401"/>
<Element Pos="13" ID="I12" Description="Interchange Control Number" Type="N0" MinLength="9" MaxLength="9" Value="000000771"/>
<Element Pos="14" ID="I13" Description="Acknowledgment Requested" Type="ID" MinLength="1" MaxLength="1" Value="1"/>
<Element Pos="15" ID="I14" Description="Usage Indicator" Type="ID" MinLength="1" MaxLength="1" Value="T"/>
<Element Pos="16" ID="I15" Description="Component Element Separator" Type="AN" MinLength="1" MaxLength="1" Value=":"/>
</SegmentRef>
<Functional-Group-Control>
<SegmentRef Pos="0" ID="GS" Description="Functional Group Header">
<Element Pos="01" ID="479" Description="Functional Identifier Code" Type="ID" MinLength="2" MaxLength="2" Value="HC"/>
<Element Pos="02" ID="142" Description="Application Sender's Code" Type="AN" MinLength="2" MaxLength="15" Value="999963473"/>
<Element Pos="03" ID="124" Description="Application Receiver's Code" Type="AN" MinLength="2" MaxLength="15" Value="COMPANY/>
<Element Pos="04" ID="373" Description="Date" Type="DT" MinLength="8" MaxLength="8" Value="20071114"/>
<Element Pos="05" ID="337" Description="Time" Type="TM" MinLength="4" MaxLength="8" Value="0847"/>
<Element Pos="06" ID="28" Description="Group Control Number" Type="N0" MinLength="1" MaxLength="9" Value="1001"/>
<Element Pos="07" ID="455" Description="Responsible Agency Code" Type="ID" MinLength="1" MaxLength="2" Value="X"/>
<Element Pos="08" ID="480" Description="Version / Release / Industry Identifier Code" Type="AN" MinLength="1" MaxLength="12" Value="004010X098A1"/>
</SegmentRef>
<Transaction-Set-Control>
<SegmentRef Pos="5" ID="ST" Description="Transaction Set Header">
<Element Pos="01" ID="143" Description="Transaction Set Identifier Code" Type="ID" MinLength="3" MaxLength="3" Value="837"/>
<Element Pos="02" ID="329" Description="Transaction Set Control Number" Type="AN" MinLength="4" MaxLength="9" Value="0001"/>
</SegmentRef>
<SegmentRef Pos="10" ID="BHT" Description="Beginning of Hierarchical Transaction">
<Element Pos="01" ID="1005" Description="Hierarchical Structure Code" Type="ID" MinLength="4" MaxLength="4" Value="0019"/>
<Element Pos="02" ID="353" Description="Transaction Set Purpose Code" Type="ID" MinLength="2" MaxLength="2" Value="00"/>
<Element Pos="03" ID="127" Description="Reference Identification" Type="AN" MinLength="1" MaxLength="30" Value="00000099990010000100001"/>
<Element Pos="04" ID="373" Description="Date" Type="DT" MinLength="8" MaxLength="8" Value="20071114"/>
<Element Pos="05" ID="337" Description="Time" Type="TM" MinLength="4" MaxLength="8" Value="0847"/>
<Element Pos="06" ID="640" Description="Transaction Type Code" Type="ID" MinLength="2" MaxLength="2" Value="CH"/>
</SegmentRef>
<SegmentRef Pos="15" ID="REF" Description="Reference Identification">
<Element Pos="01" ID="128" Description="Reference Identification Qualifier" Type="ID" MinLength="2" MaxLength="3" Value="87"/>
<Element Pos="02" ID="127" Description="Reference Identification" Type="AN" MinLength="1" MaxLength="30" Value="004010X098DA1"/>
</SegmentRef>
<NM1-LOOP>
<SegmentRef Pos="20" ID="NM1" Description="Individual or Organizational Name">
<Element Pos="01" ID="98" Description="Entity Identifier Code" Type="ID" MinLength="2" MaxLength="3" Value="41"/>
<Element Pos="02" ID="1065" Description="Entity Type Qualifier" Type="ID" MinLength="1" MaxLength="1" Value="2"/>
<Element Pos="03" ID="1035" Description="Name Last or Organization Name" Type="AN" MinLength="1" MaxLength="35" Value="MYORG"/>
<Element Pos="08" ID="66" Description="Identification Code Qualifier" Type="ID" MinLength="1" MaxLength="2" Value="46"/>
<Element Pos="09" ID="67" Description="Identification Code" Type="AN" MinLength="2" MaxLength="80" Value="9993473"/>
</SegmentRef>
<SegmentRef Pos="45" ID="PER" Description="Administrative Communications Contact">
<Element Pos="01" ID="366" Description="Contact Function Code" Type="ID" MinLength="2" MaxLength="2" Value="IC"/>
<Element Pos="02" ID="93" Description="Name" Type="AN" MinLength="1" MaxLength="60" Value="MYORG"/>
<Element Pos="03" ID="365" Description="Communication Number Qualifier" Type="ID" MinLength="2" MaxLength="2" Value="TE"/>
<Element Pos="04" ID="364" Description="Communication Number" Type="AN" MinLength="1" MaxLength="80" Value="9999486262"/>
</SegmentRef>
</NM1-LOOP>
<NM1-LOOP>
<SegmentRef Pos="20" ID="NM1" Description="Individual or Organizational Name">
<Element Pos="01" ID="98" Description="Entity Identifier Code" Type="ID" MinLength="2" MaxLength="3" Value="40"/>
<Element Pos="02" ID="1065" Description="Entity Type Qualifier" Type="ID" MinLength="1" MaxLength="1" Value="2"/>
<Element Pos="03" ID="1035" Description="Name Last or Organization Name" Type="AN" MinLength="1" MaxLength="35" Value="Company"/>
<Element Pos="08" ID="66" Description="Identification Code Qualifier" Type="ID" MinLength="1" MaxLength="2" Value="46"/>
<Element Pos="09" ID="67" Description="Identification Code" Type="AN" MinLength="2" MaxLength="80" Value="COMPANY"/>
</SegmentRef>
</NM1-LOOP>
<HL-LOOP>
<SegmentRef Pos="1" ID="HL" Description="Hierarchical Level">
<Element Pos="01" ID="628" Description="Hierarchical ID Number" Type="AN" MinLength="1" MaxLength="12" Value="1"/>
<Element Pos="03" ID="735" Description="Hierarchical Level Code" Type="ID" MinLength="1" MaxLength="2" Value="20"/>
<Element Pos="04" ID="736" Description="Hierarchical Child Code" Type="ID" MinLength="1" MaxLength="1" Value="1"/>
</SegmentRef>
<NM1-LOOP>
<SegmentRef Pos="15" ID="NM1" Description="Individual or Organizational Name">
<Element Pos="01" ID="98" Description="Entity Identifier Code" Type="ID" MinLength="2" MaxLength="3" Value="85"/>
<Element Pos="02" ID="1065" Description="Entity Type Qualifier" Type="ID" MinLength="1" MaxLength="1" Value="2"/>
<Element Pos="03" ID="1035" Description="Name Last or Organization Name" Type="AN" MinLength="1" MaxLength="35" Value="SOMECLINIC LLP"/>
<Element Pos="08" ID="66" Description="Identification Code Qualifier" Type="ID" MinLength="1" MaxLength="2" Value="XX"/>
<Element Pos="09" ID="67" Description="Identification Code" Type="AN" MinLength="2" MaxLength="80" Value="9999999995"/>
</SegmentRef>
<SegmentRef Pos="25" ID="N3" Description="Address Information">
<Element Pos="01" ID="166" Description="Address Information" Type="AN" MinLength="1" MaxLength="55" Value="PO BOX 9999"/>
</SegmentRef>
<SegmentRef Pos="30" ID="N4" Description="Geographic Location">
<Element Pos="01" ID="19" Description="City Name" Type="AN" MinLength="2" MaxLength="30" Value="LAKELAND"/>
<Element Pos="02" ID="156" Description="State or Province Code" Type="ID" MinLength="2" MaxLength="2" Value="TX"/>
<Element Pos="03" ID="116" Description="Postal Code" Type="ID" MinLength="3" MaxLength="15" Value="99994"/>
</SegmentRef>
<SegmentRef Pos="35" ID="REF" Description="Reference Identification">
<Element Pos="01" ID="128" Description="Reference Identification Qualifier" Type="ID" MinLength="2" MaxLength="3" Value="EI"/>
<Element Pos="02" ID="127" Description="Reference Identification" Type="AN" MinLength="1" MaxLength="30" Value="9999"/>
</SegmentRef>
</NM1-LOOP>
</HL-LOOP>
<HL-LOOP>
<SegmentRef Pos="1" ID="HL" Description="Hierarchical Level">
<Element Pos="01" ID="628" Description="Hierarchical ID Number" Type="AN" MinLength="1" MaxLength="12" Value="2"/>
<Element Pos="02" ID="734" Description="Hierarchical Parent ID Number" Type="AN" MinLength="1" MaxLength="12" Value="1"/>
<Element Pos="03" ID="735" Description="Hierarchical Level Code" Type="ID" MinLength="1" MaxLength="2" Value="22"/>
<Element Pos="04" ID="736" Description="Hierarchical Child Code" Type="ID" MinLength="1" MaxLength="1" Value="0"/>
</SegmentRef>
<SegmentRef Pos="5" ID="SBR" Description="Subscriber Information">
<Element Pos="01" ID="1138" Description="Payer Responsibility Sequence Number Code" Type="ID" MinLength="1" MaxLength="1" Value="P"/>
<Element Pos="02" ID="1069" Description="Individual Relationship Code" Type="ID" MinLength="2" MaxLength="2" Value="18"/>
<Element Pos="04" ID="93" Description="Name" Type="AN" MinLength="1" MaxLength="60" Value="704808"/>
<Element Pos="09" ID="1032" Description="Claim Filing Indicator Code" Type="ID" MinLength="1" MaxLength="2" Value="CI"/>
</SegmentRef>
<NM1-LOOP>
<SegmentRef Pos="15" ID="NM1" Description="Individual or Organizational Name">
<Element Pos="01" ID="98" Description="Entity Identifier Code" Type="ID" MinLength="2" MaxLength="3" Value="IL"/>
<Element Pos="02" ID="1065" Description="Entity Type Qualifier" Type="ID" MinLength="1" MaxLength="1" Value="1"/>
<Element Pos="03" ID="1035" Description="Name Last or Organization Name" Type="AN" MinLength="1" MaxLength="35" Value="SOMEONE"/>
<Element Pos="04" ID="1036" Description="Name First" Type="AN" MinLength="1" MaxLength="25" Value="DAV/>
<Element Pos="08" ID="66" Description="Identification Code Qualifier" Type="ID" MinLength="1" MaxLength="2" Value="MI"/>
<Element Pos="09" ID="67" Description="Identification Code" Type="AN" MinLength="2" MaxLength="80" Value="9999991"/>
</SegmentRef>
<SegmentRef Pos="25" ID="N3" Description="Address Information">
<Element Pos="01" ID="166" Description="Address Information" Type="AN" MinLength="1" MaxLength="55" Value="9995 SOMER"/>
</SegmentRef>
<SegmentRef Pos="30" ID="N4" Description="Geographic Location">
<Element Pos="01" ID="19" Description="City Name" Type="AN" MinLength="2" MaxLength="30" Value="DALLAS"/>
<Element Pos="02" ID="156" Description="State or Province Code" Type="ID" MinLength="2" MaxLength="2" Value="TX"/>
<Element Pos="03" ID="116" Description="Postal Code" Type="ID" MinLength="3" MaxLength="15" Value="9999948"/>
</SegmentRef>
<SegmentRef Pos="32" ID="DMG" Description="Demographic Information">
<Element Pos="01" ID="1250" Description="Date Time Period Format Qualifier" Type="ID" MinLength="2" MaxLength="3" Value="D8"/>
<Element Pos="02" ID="1251" Description="Date Time Period" Type="AN" MinLength="1" MaxLength="35" Value="19560610"/>
<Element Pos="03" ID="1068" Description="Gender Code" Type="ID" MinLength="1" MaxLength="1" Value="M"/>
</SegmentRef>
</NM1-LOOP>
<NM1-LOOP>
<SegmentRef Pos="15" ID="NM1" Description="Individual or Organizational Name">
<Element Pos="01" ID="98" Description="Entity Identifier Code" Type="ID" MinLength="2" MaxLength="3" Value="PR"/>
<Element Pos="02" ID="1065" Description="Entity Type Qualifier" Type="ID" MinLength="1" MaxLength="1" Value="2"/>
<Element Pos="03" ID="1035" Description="Name Last or Organization Name" Type="AN" MinLength="1" MaxLength="35" Value="Company"/>
<Element Pos="08" ID="66" Description="Identification Code Qualifier" Type="ID" MinLength="1" MaxLength="2" Value="PI"/>
<Element Pos="09" ID="67" Description="Identification Code" Type="AN" MinLength="2" MaxLength="80" Value="COMPANY"/>
</SegmentRef>
</NM1-LOOP>
<CLM-LOOP>
<SegmentRef Pos="130" ID="CLM" Description="Health Claim">
<Element Pos="01" ID="1028" Description="Claim Submitter's Identifier" Type="AN" MinLength="1" MaxLength="38" Value="999901"/>
<Element Pos="02" ID="782" Description="Monetary Amount" Type="R" MinLength="1" MaxLength="18" Value="92"/>
<Composite Pos="05" ID="C023" Description="Health Care Service Location Information">
<Element Pos="01" ID="1331" Description="Facility Code Value" Type="AN" MinLength="1" MaxLength="2" Value="11"/>
<Element Pos="03" ID="1325" Description="Claim Frequency Type Code" Type="ID" MinLength="1" MaxLength="1" Value="1"/>
</Composite>
<Element Pos="06" ID="1073" Description="Yes/No Condition or Response Code" Type="ID" MinLength="1" MaxLength="1" Value="Y"/>
<Element Pos="07" ID="1359" Description="Provider Accept Assignment Code" Type="ID" MinLength="1" MaxLength="1" Value="A"/>
<Element Pos="08" ID="1073" Description="Yes/No Condition or Response Code" Type="ID" MinLength="1" MaxLength="1" Value="Y"/>
<Element Pos="09" ID="1363" Description="Release of Information Code" Type="ID" MinLength="1" MaxLength="1" Value="Y"/>
<Element Pos="10" ID="1351" Description="Patient Signature Source Code" Type="ID" MinLength="1" MaxLength="1" Value="B"/>
</SegmentRef>
<SegmentRef Pos="231" ID="HI" Description="Health Care Information Codes">
<Composite Pos="01" ID="C022" Description="Health Care Code Information">
<Element Pos="01" ID="1270" Description="Code List Qualifier Code" Type="ID" MinLength="1" MaxLength="3" Value="BK"/>
<Element Pos="02" ID="1271" Description="Industry Code" Type="AN" MinLength="1" MaxLength="30" Value="1103"/>
</Composite>
<Composite Pos="02" ID="C022" Description="Health Care Code Information">
<Element Pos="01" ID="1270" Description="Code List Qualifier Code" Type="ID" MinLength="1" MaxLength="3" Value="BF"/>
<Element Pos="02" ID="1271" Description="Industry Code" Type="AN" MinLength="1" MaxLength="30" Value="78052"/>
</Composite>
<Composite Pos="03" ID="C022" Description="Health Care Code Information">
<Element Pos="01" ID="1270" Description="Code List Qualifier Code" Type="ID" MinLength="1" MaxLength="3" Value="BF"/>
<Element Pos="02" ID="1271" Description="Industry Code" Type="AN" MinLength="1" MaxLength="30" Value="185"/>
</Composite>
<Composite Pos="04" ID="C022" Description="Health Care Code Information">
<Element Pos="01" ID="1270" Description="Code List Qualifier Code" Type="ID" MinLength="1" MaxLength="3" Value="BF"/>
<Element Pos="02" ID="1271" Description="Industry Code" Type="AN" MinLength="1" MaxLength="30" Value="53081"/>
</Composite>
</SegmentRef>
<LX-LOOP>
<SegmentRef Pos="365" ID="LX" Description="Assigned Number">
<Element Pos="01" ID="554" Description="Assigned Number" Type="N0" MinLength="1" MaxLength="6" Value="1"/>
</SegmentRef>
<SegmentRef Pos="370" ID="SV1" Description="Professional Service">
<Composite Pos="01" ID="C003" Description="Composite Medical Procedure Identifier">
<Element Pos="01" ID="235" Description="Product/Service ID Qualifier" Type="ID" MinLength="2" MaxLength="2" Value="HC"/>
<Element Pos="02" ID="234" Description="Product/Service ID" Type="AN" MinLength="1" MaxLength="48" Value="99213"/>
</Composite>
<Element Pos="02" ID="782" Description="Monetary Amount" Type="R" MinLength="1" MaxLength="18" Value="92"/>
<Element Pos="03" ID="355" Description="Unit or Basis for Measurement Code" Type="ID" MinLength="2" MaxLength="2" Value="UN"/>
<Element Pos="04" ID="380" Description="Quantity" Type="R" MinLength="1" MaxLength="15" Value="1"/>
<Element Pos="05" ID="1331" Description="Facility Code Value" Type="AN" MinLength="1" MaxLength="2" Value="11"/>
</SegmentRef>
<SegmentRef Pos="455" ID="DTP" Description="Date or Time or Period">
<Element Pos="01" ID="374" Description="Date/Time Qualifier" Type="ID" MinLength="3" MaxLength="3" Value="472"/>
<Element Pos="02" ID="1250" Description="Date Time Period Format Qualifier" Type="ID" MinLength="2" MaxLength="3" Value="D8"/>
<Element Pos="03" ID="1251" Description="Date Time Period" Type="AN" MinLength="1" MaxLength="35" Value="20071022"/>
</SegmentRef>
</LX-LOOP>
</CLM-LOOP>
</HL-LOOP>
<SegmentRef Pos="555" ID="SE" Description="Transaction Set Trailer">
<Element Pos="01" ID="96" Description="Number of Included Segments" Type="N0" MinLength="1" MaxLength="10" Value="24"/>
<Element Pos="02" ID="329" Description="Transaction Set Control Number" Type="AN" MinLength="4" MaxLength="9" Value="0001"/>
</SegmentRef>
</Transaction-Set-Control>
<SegmentRef Pos="0" ID="GE" Description="Functional Group Trailer">
<Element Pos="01" ID="97" Description="Number of Transaction Sets Included" Type="N0" MinLength="1" MaxLength="6" Value="1"/>
<Element Pos="02" ID="28" Description="Group Control Number" Type="N0" MinLength="1" MaxLength="9" Value="1001"/>
</SegmentRef>
</Functional-Group-Control>
<SegmentRef Pos="0" ID="IEA" Description="Interchange Control Trailer">
<Element Pos="01" ID="I16" Description="Number of Included Functional Groups" Type="N0" MinLength="1" MaxLength="5" Value="1"/>
<Element Pos="02" ID="I12" Description="Interchange Control Number" Type="N0" MinLength="9" MaxLength="9" Value="99991"/>
</SegmentRef>
</Interchange-Control>
</EDI-X12-4010>
|
|
|
|
|
I'm developing an application that has some document management functionality, with a folder structure displayed in a treeview.
I can quite happily drag the treeview nodes around to re-order them, and drag folders and files into the tree from windows explorer. That bit was easy.
I'd also like to be able to drag folders (treeview nodes) out of my application and drop them into an explorer window.
I've tried searching for a solution, but only come up with dragging things into my treeview, not out.
Can someone point me in the right direction?
Cheers,
Anthony.
|
|
|
|
|
You may take a look at this article.
http://www.codeproject.com/csharp/dragdrop.asp
I haven't tried to do like that in C# but I have done in VB6 so I'm sure that you will be able to do that in C# too.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
"Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
|
|
|
|
|
1. How to create a table in sql server 2005 using c#.net at runtime?
2. Can we use a DatagridView control to display records from a table in connected approach? If yes, How?
kmraina@gmail.com
|
|
|
|
|
I've come to learn that when the subject is the name of the language, it's guarenteed the questions will be ones easily answered by google.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
compiler: visual c++ 2005
platform: WINDOWS2000 or Xp
My code does things as follows:
In unmanaged C++
1.the iterator of std::map
2.call std::map::find
3.assign the find result to a local variable in std::map::iterator
4.throw std::runtime_error exception
In managed C++
1.catch the std::runtime_error
2.throw the .NET System.Exception
In C#
1.catch the exception
When the C# program terminated, an exception occured:
Unhandled Exception: System.AccessViolationException: Attempted to read or write
protected memory. This is often an indication that other memory is corrupt.
Note:
1.When the compiler is Visual C++ 2003, the mentioned exception does NOT occur.
2.When I use the STLport library to take the place of the Stl library boundled with Visual C++
2005, the mentioned exception does NOT occur.
3.If the returned value from std::map::find is not assigned to any variable, the mentioned
exception does NOT occur.
The code is as follows:
Unmanaged C++ .cpp code:
#include "test.h"
#include <stdexcept>
using namespace std;
void AA::GetA()
{
map<string, string>::iterator iter = a.begin();
// If this statement is a.find("a"), that is, iter is not assigned, the mentioned exception
does NOT occur.
iter = a.find("a");
throw runtime_error("I am a C++ error!!!");
}
void AA::SetA()
{
a["test1"] = "testtest1";
a["a"] = "testtest2";
a["c"] = "testtest3";
a["b"] = "testtest4";
a["d"] = "testtest5";
}
Unmanaged C++ .h code:
#ifndef _TEST_H_
#define _TEST_H_
#ifdef _USRDLL
#define DllEXPORT __declspec( dllexport )
#else
#define DllEXPORT __declspec( dllimport )
#endif
#include <map>
#include <string>
class AA
{
public:
AA() : b(0)
{
}
~AA()
{
b = 0;
}
DllEXPORT void GetA();
DllEXPORT void SetA();
private:
std::map<std::string, std::string> a;
int b;
};
#endif // _TEST_H_
Managed C++ code:
#include "test.h"
#include <stdexcept>
#using <mscorlib.dll>
using namespace std;
using namespace System;
using namespace System::Collections;
using namespace System::Collections::Generic;
namespace GC {
public __gc class Test {
public:
Test() : mpAA(0)
{
mpAA = new AA;
}
~Test()
{
delete mpAA;
mpAA = 0;
}
void GetA()
{
try {
mpAA->GetA();
}
catch (exception& e) {
throw new Exception(e.what());
}
}
void SetA()
{
mpAA->SetA();
}
private:
AA* mpAA;
};
};
C# code:
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
GC.Test a = new GC.Test();
a.SetA();
try
{
a.GetA();
}
catch (Exception e)
{
}
}
}
}
I don't know how to slove this problem.
Thanks for your help!!
|
|
|
|
|
I'm working on a program that will create files holding variable amounts of data. For example, I will have a file that stores attributes of a person (Name, age, etc.) and an inventory (Items, etc).
My question is this, what kind of options do I have with storing this data? I can make a personal file, an inventory file etc all in various forms of formatted text files (which was my original idea). However, I'm wondering if I'm not reinventing the wheel here. Does anyone know of any other options I have out there?
Any help would be much appreciated!
Thanks in advance,
- Per J
while(fork()){
fork();
}
|
|
|
|
|
Save that data into the XML format.
If you are saving data into the XML format than it is also like a text file.
But it will also give you facility to manage the data into the proper format.
And .Net also allow methods to directly read write into the XML files using Dataset.
Hope this help!!!
Regards
Pankaj Joshi
If you want to shape your dreams into reality, please wake-up...
|
|
|
|
|
Hey yeah, my buddy just recommended something similar too! That helps quite a bit, and I'll do my own digging on that. Thanks for the advice
- Per J
while(fork()){
fork();
}
|
|
|
|
|
Hi there.
I have had a search on the net but can't find anything that matches what i need. I have a datagrid which I have displaying entries from a dataset. What thw problem is, is that the same person displays multiple times depending on how many skills they have. EG
Tom Hanks Skill1
Tom Hanks Skill2 bla bla
I want the skills to display in one row. EG
Tom Hanks Skill1, Skill2, Skill3 etc.
I found something on the code project but it doesn't seem relevant.
I think I have my sql select statement correct but I'm thinking I'll need some sort of loop?
Thank you
|
|
|
|
|
1. Concatenate all skills for a person into a single string, and display that as a Skills column. Eg: Neo | Male | 22 | Kung fu, Jujitsu
2. If you know a person can have only N skills, create N extra columns called Skill1, Skill2... SkillN and add them to your grid.
3. You can display the skills in a nested grid.
Cheers,
विक्रम
And sleep will come, it comes to us all
And some will fade and some will fall
|
|
|
|
|
Thanks. That could work but they can have up to 20 skills. Is there a way to get maybe a drop down box with results or all results in one field?
|
|
|
|