Message 1 of 3
VB.Net Conversion To Python
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Can anybody help?
Purely as a test, can anybody please convert the following code from VB.Net to Python for me?
Dim TestString As String = "50 x 50 x 2.9 SHS x 800 Long - Mitred Both Ends"
LeftString = Strings.Left(TestString, 1 + InStrRev(TestString, "x"))
RightString = Strings.Right(TestString, (Strings.Len(TestString) - (InStrRev(TestString, "Long") - 2)))
MsgBox(LeftString + "7855" + RightString)
Many thanks in advance!
Kind Regards
Darren