FirstClassトップページ


 ヘルプの目次
このヘルプについて このヘルプについて
 
エンドユーザ向けヘルプ エンドユーザ向けヘルプ
Client Help クライアントヘルプ
Web Help Webアクセスヘルプ
ScreenReader Help スクリーンリーダ
Form フォーム
Synchronization 同期
Definitions 用語
container コンテナ
 
管理者向けヘルプ 管理者向けヘルプ
Administration サーバの管理
Internet Services インターネットサービス
Customization Tools カスタマイズツール(英語)
Administering OTSW OTSWの管理
OTSW Custodian OTSW Custodian
Using FirstClass ED FirstClass ED(英語)
 
バナー:
 
 Left
 
Purpose
Returns a string containing the leftmost characters of a string argument.
Syntax
Left (StringExpression, NumericExpression)


StringExpression
Any valid string.
NumericExpression
Any valid integer greater than or equal to 0.
If NumericExpression is greater than or equal to the length of StringExpression, the entire string is returned.

Example
Sub Main()
        Dim s As String, Ioc As Integer
        s = "the quick fox jumps over the dog"
        Ioc = InStr(s, " ")             'find the first occurrence of a space character
        If Ioc<>0 Then
                Print "The first word in the sentence is:"; Left(s, Ioc - 1)
                Print "The rest of the sentence is:"; Right(s, Len(s) - Ioc)
        Else
                print "Invalid sentence (no spaces)."
        End If
End Sub

 

Copyright(C) 2002-2011 FC Management Co. All Rights Reserved