-
Tracy Lamb
- PowerBuilder
- Tuesday, 29 July 2025 12:30 AM UTC
Hi all,
Several years ago I asked how to run a program from my app and wait for it to finish before continuing. It was suggested that I use an object called n_runandwait developed by Roland Smith. That worked like a charm! Now I'm compiling 64-bit applications, and it does not work with the 64-bit version of my application. Does anyone know what to do? Here's a snippet of the code:
n_runandwait lnv_RunAndWait
for li_x = 1 to li_SelectedCount
...Do Stuff...
ls_file = "C:\Cal Labels\CalLabels.exe " + string(ll_WorkOrder)
lnv_RunAndWait.RunAndWait(ls_file, 1)
next
For now, I just use the RUN(file name) command. It's not a problem, but the user might end up with 10 or more instances of the other program open all at once.
Hoping Roland might see this message and maybe have a new release of n_runandwait object. I'm using PB2022 R3, MR 3397.
~~~Tracy
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.