設為首頁收藏本站

艾歐踢論壇

 找回密碼
 立即註冊

QQ登錄

只需一步,快速開始

搜索
熱搜: 活動 交友 discuz
查看: 454|回復: 0
打印 上一主題 下一主題

INFORMIX 4GL函數

[複製鏈接]
跳轉到指定樓層
樓主
發表於 2020-3-13 08:48:42 | 只看該作者 回帖獎勵 |倒序瀏覽 |閱讀模式
FIELD_TOUCHED(field) : 如果使用者改變了螢幕中 field 域,它就返回TRUE。
The FIELD_TOUCHED( ) operator returns a Boolean value TRUE (meaning that the user made a change to the field) when a DISPLAY statement displays data in any of the specified fields, or the user presses any of the following keys:
A printable character (including the Spacebar)
CONTROL-X (character delete)
CONTROL-D (clear to end of field)
After any of these keystrokes, the FIELD_TOUCHED( ) operator returns TRUE, regardless of whether the keystroke has changed the value in the field.
Otherwise, the FIELD_TOUCHED( ) operator returns FALSE if none of the specified fields are edited. Moving through a field (by pressing Enter, Tab, or the Arrow keys, or by using the mouse without entering anything) does not mark a field as "touched."

GET_FLDBUF(field_list) : 返回一個或多個域的字元值。
FGL_LASTKEY() : 返回符合最近的鍵擊的整數值(ASCII數值)。
INFIELD(field) : 如果給定的域是螢幕的當前域,就返回TRUE。

ARR_CURR() : 返回程式陣列的目前記錄號。這在求當前陣列各域值時特別有用。ARR_COUNT() : 返回程式陣列個數。
SCR_LINE() : 返回游標在螢幕陣列的行號。
SET_COUNT(field_rows) : 告訴4GL要有多少行陣列要顯示或輸入。要顯示或輸入陣列是必須先調用它。
ARG_VAL(int_expr) :
DOWNSHIFT(char_expr) : 字串轉換成小寫字母。
UPSHIFT(char_expr) : 字串轉換成大寫字母。
ERR_GET(int_expr) :
ERR_PRINT(int_expr) :
ERR_QUIT(int_expr) : 關於錯誤號碼 int_expr 的處理。
ERRORLOG(char_expr) : 記錄用字串 char_expr 表示的錯誤log。
STARTLOG(char_expr) : 開始log。
FGL_GETENV(char_expr) : 給出用 char_expr 表示的環境變數的值。如 FGL_GETENV("TERM") 將得到環境變數TERM的值。
FGL_DRAWBOX(height, width, line, left-offset [, color ]) : 畫方框。
LENGTH(char_expr) : 計算字串運算式的長度,尾部空格不計在內。
ASCII int_expr : 得到ASCII值。
char_expr CLIPPED : 去掉字串尾部的空格。這個操作符在參數傳遞和SQL語句中很有用。
CURRENT : 當前時間。格式為 YYYY/MM/DD hh:mm:ss 如 LET atime  CURRENT。
TODAY : 當前日期。
DAY(date_expr) :
MONTH(date_expr) :
YEAR(date_expt ) : 分別返回日期格式參數中的日、月、年。data_expr 為DATE類型。
WEEKDAY(date_expr) : 返回日期變數是周幾。
,     :  逗號運算子能將兩個以上的字元串連接起來。格式為 char_expr1 , char_expr2。
expr IS NULL :
expr IS NOT NULL : 判斷運算式是否為空。
LINENO :
PAGENO : 只用在報表中,打印行號和頁號。
int_expr SPACE :
int_expr SPACES : 用一定數量的空格代替手工輸入的空格。
expr USING format-string : 格式化運算式。expr類型可以為smallint、decimal、float、date等。
分享到:  QQ好友和群QQ好友和群 QQ空間QQ空間 騰訊微博騰訊微博 騰訊朋友騰訊朋友
收藏收藏 轉播轉播 分享分享 分享淘帖
回復

使用道具 舉報

您需要登錄後才可以回帖 登錄 | 立即註冊

本版積分規則

小黑屋|Archiver|手機版|艾歐踢創新工坊    

GMT+8, 2024-6-12 21:52 , Processed in 0.224733 second(s), 20 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回復 返回頂部 返回列表