4D Write v16WR Get selected text |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D Write v16
WR Get selected text
|
WR Get selected text ( area ) -> 戻り値 | ||||||||
引数 | 型 | 説明 | ||||||
area | 倍長整数 |
![]() |
4D Write エリア | |||||
戻り値 | テキスト |
![]() |
エリア内の選択テキスト | |||||
WR Get selected textコマンドはarea内の選択テキストを返します。
データベースが非Unicodeモードで実行されている場合、返されるテキストは最初の32,000文字が上限となります。
次の例は、vText 変数の中にarea内の選択テキストを代入します。
vText:=WR Get selected text(area)
非Unicodeモードで実行されているデータベースで、32,000文字以上を選択したかどうかのテスト:
C_LONGINT($start;$end)
C_TEXT($text)
WR GET SELECTION(WritePicture;$start;$end) `選択部分の先頭と最後の位置を取得
If($end-$start>=32000) `差が32,000以上の場合、選択部分は切り取られる
ALERT("Only the first 32,000 characters will be recovered.")
End if
$text:=WR Get selected text(WritePicture)
プロダクト: 4D Write
テーマ: WRテキスト操作
番号:
89191
変更: 4D Write v11
4D Write ( 4D Write v16)