Showing posts with label string. Show all posts
Showing posts with label string. Show all posts

Thursday, January 25, 2024

String Format VB.NET

 String->  str_otlQuery = select employee_number  from HR.PER_ALL_PEOPLE_F where NATIONAL_IDENTIFIER='{0}'


String.Format(str_otlQuery,"111-11-1111")


Output -> select employee_number  from HR.PER_ALL_PEOPLE_F where NATIONAL_IDENTIFIER='111-11-1111'

Monday, January 23, 2023

Friday, July 23, 2021

Get SubString from String; Python



fileName="Hello World!!"
#below Prints Hello
subStringValue=fileName[0:4]

#below Prints World
subStringValue2=fileName[6:10]