IBM Lotus Symphony
|
Odstraňuje všetky vodiace medzery na začiatku reťazcového výrazu.
LTrim (text ako typ String)
Reťazec
Text: ľubovoľný reťazcový výraz.
Použite túto funkciu na odstránenie medzier na začiatku reťazcového výrazu.
Sub Príklad_Spaces
Dim sText2 ako typ String,sText ako typ String,sOut ako typ String
sText2 = " <*Las Vegas*> "
sOut = "'"+sText2 +"'"+ Chr(13)
sText = Ltrim(sText2) REM sText = " <*Las Vegas*> "
sOut = sOut + "'"+sText +"'" + Chr(13)
sText = Rtrim(sText2) REM sText = " <*Las Vegas*> "
sOut = sOut +"'"+ sText +"'" + Chr(13)
sText = Trim(sText2) REM sText = " <*Las Vegas*> "
sOut = sOut +"'"+ sText +"'"
MsgBox sOut
end sub