1. SHAMEEM KAKKAD
  2. PowerBuilder
  3. Monday, 24 January 2022 11:39 AM UTC

Hai,

I have a doubt....

How can manage the script execution ?. 

that is...

In a button click have lot of line and prepairing a datawindow from various tables and conditions. After that I want to open a window (window type = popup) and doing some works. After only I want to execute some other process.

So, How can hold to execute last process without complete a window (popup) functions ?.

......................................

......................................

.......................................... etc..

if ProfileString ("xxx.ini", 'Database', "DSautosend" ,"") = 'Yes' then
   int li_FileNum
   string readdata_
   li_FileNum = FileOpen(filepath_, TextMode!)
   FileReadEx(li_FileNum, readdata_)
   fileclose (li_FileNum)
   openwithparm (w_instand_messaging,readdata_)
end if

*** -------- here I want to hold the below lines (scripts) until the process complete from above window ----------- ***

 

do while x_ <= cc_
   data_ = dw_2.getitemstring ( x_ , 5 )
   vital_ = autopastedata ( dw_2.getitemstring ( x_ , 5 ) )
   if vital_ <> '+++' then dw_2.setitem ( x_ , 5 , vital_ )
   vital_ = autopastedata ( dw_2.getitemstring ( x_ , 6 ) )
   if vital_ <> '+++' then dw_2.setitem ( x_ , 6 , vital_ )
   fx_ = 10
   do while fx_ <= 25
        vital_ = autopastedata ( dw_2.getitemstring ( x_ , fx_ ) )
        if vital_ <> '+++' then dw_2.setitem ( x_ , fx_ , vital_ )
        fx_ ++
   loop

   ...............................................................

   ...............................................

x_ ++

loop

 

 

What is the solution ?

René Ullrich Accepted Answer Pending Moderation
  1. Monday, 24 January 2022 11:43 AM UTC
  2. PowerBuilder
  3. # 1

If you make w_instand_messaging a response window the calling routine will wait until it is closed.

Comment
  1. SHAMEEM KAKKAD
  2. Monday, 24 January 2022 12:28 PM UTC
Thanks,

and if will do some operation with external files like fileopen, fileread, compress.... without open new window, how can manage it ?
  1. Helpful
  1. René Ullrich
  2. Monday, 24 January 2022 12:34 PM UTC
Sorry, but I don't understand what you want to do. External file operations are synchronous. The code will run in the order you call it.
  1. Helpful
  1. SHAMEEM KAKKAD
  2. Monday, 24 January 2022 12:53 PM UTC
I mean, we got some files from online (calling API or like...) which files was zip format. before complete the donwloading, system executing uncompress execution....
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.