LibreOfficeDev 25.2 እርዳታ
ይመልሳል የ ተወሰነ መጠን የ ሀረግ መግለጫ ( መሀከል ተግባር ), ወይንም መቀየሪያ የ ሀረግ መግለጫ መጠን በ ሌላ ሀረግ ( መሀከል አረፍተ ነገር )
Mid (Text As String, Start As Long [, Length As Long])
Mid (Text As String, Start As Long, Length As Long, Text As String)
ሀረግ (በ ተግባር ብቻ)
ጽሁፍ: ማንኛውም የ ሀረግ መግለጫ እርስዎ ማሻሻል የሚፈልጉት
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.
የ እርዝመት ደንብ በ መሀከል ተግባር ካልታየ: ሁሉም ባህሪዎች በ ሀረግ መግለጫ ውስጥ ከ ማስጀመሪያ ቦታ እስከ መጨረሻ ሀረግ ድረስ ይመልሳል
የ እርዝመት ደንብ ከሆነ በ መሀከል አረፍተ ነገር ጽሁፉ እርዝመቱ የሚያንስ ከሆነ እርስዎ መቀየር ከሚፈልጉት: ጽሁፉ ይቀነሳል ወደ ተወሰነ መጠን
ጽሁፍ: ጽሁፉ ይቀየራል በ ሀረግ መግለጫ (መሀከል አረፍተ ነገር ).
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