--- 일반적으로 고수들은 아는 이야기...?
글로벌 함수를 만듭니다.
그리고 아그먼트가 다른 함수를 만듭니다.
파워빌더 기본 편집화면에서는 만들수 없습니다.
Edit Source에서 작업을 할수 있습니다.
1. 일반편집화면으로 gf_wait (unsignedlong al_wait, boolean ab_yield) 함수를 만듭니다.
2. Edit Source에서 gf_wait (unsignedlong al_wait)을 만듭니다.
-- PS 함수를 고치려면 Edit Source 수정하면 됩니다.
아래는 소스입니다.
global type gf_Wait from function_object
end type
forward prototypes
global subroutine gf_wait (unsignedlong al_wait, boolean ab_yield)
global subroutine gf_wait (unsignedlong al_wait)
end prototypes
global subroutine gf_wait (unsignedlong al_wait, boolean ab_yield);Long ll_Now, ls_End
ll_Now = cpu()
ls_End = ll_Now + al_Wait
Do While ls_End > ll_Now
if ab_yield then
Yield()
else
SetPointer(HourGlass!)
end if
ll_Now = cpu()
Loop
end subroutine
global subroutine gf_wait (unsignedlong al_wait);gf_wait (al_wait, false)
end subroutine