ExecuteFormFieldScriptJSONA

폼, JavaScript 보안

설명

끝의 A는 ANSI(char) DLL 진입점을 나타내며 ActiveX/COM 표면은 Unicode 형식만 노출합니다. 동작은 ExecuteFormFieldScriptJSON 함수와 동일하며 문자열 인수는 현재 SetAnsiMode 코드 페이지를 사용하여 해석됩니다

필드 검증, 계산, 포매팅, 키 입력 액션을 실행하고 결과와 이벤트 상태를 JSON으로 반환합니다. DLL과 ActiveX 인터페이스에 ExecuteFormFieldScriptEvent를 제공합니다

구문

Delphi

Function DLExecuteFormFieldScriptJSONA(InstanceID, Index, Action: Integer; Value, Change: PAnsiChar; SelStart, SelEnd, Flags: Integer): PAnsiChar;

DLL

const char* DLExecuteFormFieldScriptJSONA(int InstanceID, int Index, int Action, const char* Value, const char* Change, int SelStart, int SelEnd, int Flags);

매개변수

Index1 기반 필드 인덱스
Action0 validate, 1 calculate, 2 format, 3 keystroke
Value, Change초기 event.value와 event.change
SelStart, SelEnd변경이 교체하는 선택 영역
Flags1 willCommit, 2 fieldFull, 4 keyDown, 8 modifier, 16 shift의 합

반환 값

result(ExecuteFormFieldScriptEvent 반환 값), value, change, rc, selStart, selEnd를 담은 JSON 객체입니다. 잘못된 Action은 LastErrorCode 708과 함께 {"result":0}을 반환합니다

소스 필드는 대상 필드입니다. DLL 문자열은 인스턴스 반환 버퍼에 속하므로 다음 호출 전에 복사해야 합니다

참고 항목

ExecuteFormFieldScriptEvent, SetFormScriptHostActionMode, GetFormScriptDiagnostics