Home > database >  PB in query data waiting, waiting for the popup Windows, window has a LOADING images, how to avoid s
PB in query data waiting, waiting for the popup Windows, window has a LOADING images, how to avoid s

Time:10-22

PB in query data waiting, waiting for the popup Windows, window has a LOADING GIF images, how to avoid the feign death, GIF can move, the post said with YIELD () function, how to use high number, please help, thank you
I'm retrievestart () open the window, retrieveend () close the window

CodePudding user response:

Top, also want to have this function

CodePudding user response:

Write the logic in the data window RetrieveRow try,

CodePudding user response:

Warrior for help

CodePudding user response:

I feel I can only use multithreading or multi-process implementation, yield impact efficiency

CodePudding user response:

This function does anyone can provide a GuanNian..

CodePudding user response:

1, building a popup! Type of the window, put on your GIF images, the name of the stored as w_base_wait;
2, the following code. Save as n_cst_thread_basewait sru, right-click on your PBL again import... Get a Custom called n_cst_thread_basewait Class;
 $PBExportHeader $n_cst_thread_basewait. Sru 
$PBExportComments $on or off waiting threads window
Forward
Global type n_cst_thread_basewait from nonvisualobject
End type
End forward

Global type n_cst_thread_basewait from nonvisualobject
End type
Global n_cst_thread_basewait n_cst_thread_basewait

The type as

End as

The type variables

End the variables

Forward as
The public function integer of_close_wait ()
The public function integer of_open_wait ()
End as

The public function integer of_close_wait (); If isvalid (w_base_wait) then close (w_base_wait)

Return 0
End the function

The public function integer of_open_wait (); If not isvalid (w_base_wait) then open (w_base_wait)

Return 0
End the function

On n_cst_thread_basewait. The create
Call super: : create
TriggerEvent (this, "constructor")
End on

On n_cst_thread_basewait. Destroy
TriggerEvent (this, "destructor")
Call super: : destroy
End on


3, in the application to define a global variable n_cst_thread_basewait gwait and add a function called of_cthread_wait, return an integer:
 ErrorReturn err 
Err=SharedObjectRegister (" n_cst_thread_basewait ", "nwait")

IF err & lt;> Success! THEN
Messagebox (', 'registered Shared object failed! ', stopsign!)
The return - 1
END the IF
Err=SharedObjectGet (" nwait gwait)
If err & lt;> Success! Then
Messagebox (', 'generated from the Shared object registered thread failure! ', stopsign)
The return - 1
End the if
SharedObjectUnregister (' nwait)

If isvalid (gwait) then
Return 0
The else
The return - 1
End the if


4, written in the application of the open event: of_cthread_wait ()
5, need to open for window place to write: gwait. Post of_open_wait (), where the need to close the write: gwait. Post of_close_wait ()

CodePudding user response:

To learn...

CodePudding user response:

Tried, the effect is not ideal

CodePudding user response:

Tried, the effect is not ideal, ha ha

CodePudding user response:

Want to be the simplest, find a play AVI control,

It does not hang in there,

CodePudding user response:

  • Related