Thoughts from Dan Miser RSS 2.0
 Thursday, January 24, 2008

I had a need to move some VB.NET code to C# today. We're still not at the point where we can just mix and match languages within an assembly, and in this case, it would be more work than I wanted to separate things out. I looked around the net, and the best code converter that I found (read: it successfully converted everything I threw at it, where others failed) was this one.

Thursday, January 24, 2008 9:36:42 AM (Central Standard Time, UTC-06:00)  #    Comments [3] -
.NET
Thursday, January 24, 2008 10:17:42 PM (Central Standard Time, UTC-06:00)
It be really cool if a similar tool existed for convering C# to Delphi!

--Troy
Thursday, January 24, 2008 10:57:57 PM (Central Standard Time, UTC-06:00)
Here you go!

http://lingua.codegear.com/babelcode/
Wednesday, January 30, 2008 8:00:13 AM (Central Standard Time, UTC-06:00)
I need the Vb .net code to generate an xml file by passing some parametr as attribute for that file.Following is the code in C# might be help full for you.By using these code i am able to genrate an xml file at runtime.
please send the code in vb if posible by n thanx in advance
Response.Clear();
Response.ContentType = "text/xml";
XmlTextWriter Enquiry__service_xml = new XmlTextWriter(Response.OutputStream, Encoding.UTF8);
Enquiry__service_xml.WriteStartDocument();
Enquiry__service_xml.WriteStartElement("PrsReservInput");
Enquiry__service_xml.WriteAttributeString("lccp_srcstn", "NDLS");
Enquiry__service_xml.WriteAttributeString("lccp_dstnstn", "MAS");
Enquiry__service_xml.WriteAttributeString("lccp_trnnum", "2622");
Enquiry__service_xml.WriteAttributeString("lccp_cls","SL");
Enquiry__service_xml.WriteAttributeString("lccp_resupto","MAS" );
Enquiry__service_xml.WriteAttributeString("lccp_brdpt","NDLS");
Enquiry__service_xml.WriteAttributeString("lccp_day","10" );
Enquiry__service_xml.WriteAttributeString("lccp_month","4");
Enquiry__service_xml.WriteAttributeString("lccp_year","2004");
Enquiry__service_xml.WriteAttributeString("lccp_qta","GN" );
Enquiry__service_xml.WriteAttributeString("lccp_psgnname1",txtp1.Text.ToString () );
Enquiry__service_xml.WriteAttributeString("lccp_psgnsex1",cmbSex1.SelectedValue );
Enquiry__service_xml.WriteAttributeString("lccp_psgnage1", txtpa1.Text.ToString());
Enquiry__service_xml.WriteAttributeString("lccp_psgnberthpref1",RBCB1.SelectedValue );
Enquiry__service_xml.WriteEndElement();
Enquiry__service_xml.WriteEndDocument();
Enquiry__service_xml.Flush();
Enquiry__service_xml.Close();
Response.End();
Comments are closed.
Navigation
Archive
<May 2008>
SunMonTueWedThuFriSat
27282930123
45678910
11121314151617
18192021222324
25262728293031
1234567
About the author/Disclaimer

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Copyright 2008
Dan Miser
Sign In
Statistics
Total Posts: 305
This Year: 20
This Month: 1
This Week: 0
Comments: 601
All Content © 2008, Dan Miser
DasBlog theme 'Business' created by Christoph De Baene (delarou)