1. Adolfo Chairez Gallegos
  2. PowerBuilder
  3. Wednesday, 12 July 2023 16:45 PM UTC

How can i acces event of the Compress Object. 

I use this code:

Integer li_res
String ls_archivo, ls_carpetas[]
CompressorObject lco_backup
lco_backup = Create CompressorObject

li_res = lco_backup.Compress(ls_carpetas,ls_archivo,ArchiveFormatZIP!)

 

But need to acces the events.

 

Attachments (1)
Accepted Answer
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Wednesday, 12 July 2023 17:01 PM UTC
  2. PowerBuilder
  3. # Permalink

Create a new object and select :

Then select "CompressorObject" and click OK button:

Save it as for example "n_compressorobject".

In your code, instead of using "CompressorObject", use "n_compressorobject":

n_compressorObject lco_backup
lco_backup = Create n_compressorObject
Comment
  1. Miguel Leeuwe
  2. Wednesday, 12 July 2023 17:30 PM UTC
Great to hear. Thank you too Francisco, our replies crossed each other.
  1. Helpful
  1. Francisco Martinez @Appeon
  2. Thursday, 13 July 2023 16:16 PM UTC
Yours is better explained, I think :)
  1. Helpful
There are no comments made yet.
Adolfo Chairez Gallegos Accepted Answer Pending Moderation
  1. Wednesday, 12 July 2023 17:19 PM UTC
  2. PowerBuilder
  3. # 1

It's Working

Attachments (1)
Comment
There are no comments made yet.
Francisco Martinez @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 12 July 2023 16:58 PM UTC
  2. PowerBuilder
  3. # 2

Hi Adolfo,

You can create a CompressorObject descendant and write your own code in the events and use that instead.

 

Regards,
Francisco

Comment
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.