LibreOfficeDev 25.2 Help
Returns the specified portion of a string expression (Mid function), or replaces the portion of a string expression with another string (Mid statement).
Mid (Text As String, Start As Long [, Length As Long])
Mid (Text As String, Start As Long, Length As Long, Text As String)
ཡིག་རྟགས་ཕྲེང་བ་ ( རྟེན་གྲངས་ཁོ་ན་སྤྱོད་)
Text བཟོ་བཟོས་དགོས་རྒྱུའི་ཡིག་རྟགས་ཕྲེང་བའི་མཚོན་ཚུལ་གང་རུང་།
Start: Numeric expression that indicates the character position within the string where the string portion that you want to replace or to return begins. The minimum allowed value is 1. The maximum allowed value is 2,147,483,648.
Length: Numeric expression that returns the number of characters that you want to replace or return. The maximum allowed value is 2,147,483,648.
གལ་སྲིད་ Mid རྟེན་གྲངས་ནང་གི་ Length ཁུགས་གྲངས་གཏན་འཁེལ་མེད་ན་ ཡིག་རྟགས་ཕྲེང་བའི་མཚོན་ཚུལ་ནང་གི་འགོ་ཚུགས་ནས་ཡིག་རྟགས་ཕྲེང་བའི་མཇུག་བསྡུ་པའི་ཡིག་རྟགས་སུ་ཕྱིར་ལོག་པ།
གལ་སྲིད་ Mid བརྗོད་པའི་ནང་གི་ Length ཁུགས་གྲངས་དེ་ཚབ་བརྗེའི་ཡི་གེའི་རིང་ཚད་ལས་ཆུང་བ་ཡོད་ན་ཡི་གེའི་རིང་ཚད་དེ་གཏན་འཁེལ་གྱི་རིང་ཚད་དུ་ཐུང་དུ་གཏོང་དགོས།
Text ཡིག་རྟགས་ཕྲེང་བའི་མཚོན་ཚུལ་གྱི་ཡིག་རྟགས་ཕྲེང་བའི་ཚབ་བརྗེ་སྤྱོད་བརྒྱུད།(Mid བརྗོད་པ།)
Sub ExampleMid_Function_and_Statement
original_text = "This is the original Text"
' Mid as function
msgbox Mid( original_text , 13, 8) ' returns the word original
msgbox original_text ' original_text not modified
' Mid as statement
Mid( original_text, 13, 8, "new" )
msgbox original_text ' returns This is the new Text
End Sub