728x90

New - PBObject - StandardVisual - Name : n_timing

/* Instance Variables */

public:

private:
PowerObject #po_Object
String #s_Event

/* Timer Event */

if Not IsValid( #po_Object ) Then return
if Not ( Trim(#s_Event) = '' or isnull(#s_Event) ) then return
#po_Object.TriggerEvent( #s_Event )

/* of_SetEvent ( powerobject apo_ojb, string as_event )
용도 Timing 실행 이벤트를 만듭니다.
*/
#po_Object = apo_ojb
#s_Event = as_event

/* int of_Start( double ad_interval )
용도 timing을 시작한다.
1/1000 단위로 작업을 하도록 한다.
*/
ad_interval = ad_interval / 1000
return This.start( ad_interval )

/* of_Stop()
Timing 을 멈춘다.
*/
return This.Stop()

//==================================

사용법은 다음과 같이 합니다.

/* 필요한 Object 의 Instance Variables */

n_timing in_time

/* 필요한 Object 적당한 위치 */

if isvalid( in_time ) then

in_time = create n_timing

end if

n_timing.of_SetEvent ( {objename}, {"ue_runeventname"} )

출처 : http://cafe.daum.net/SWShin/NgEb/11

728x90

'PowerBuilder' 카테고리의 다른 글

파워빌더 모든 공백 제거  (0) 2012.07.29
파워빌더 datawindow save 에러  (0) 2012.07.29
파워빌더 데이터타입(DataType)  (0) 2012.07.29
파워빌더 sle 엔터  (0) 2012.07.29
datawindow does not hava update capability  (0) 2012.07.29

+ Recent posts