Jumat, 07 Juni 2024

Procedure In CorelDraw VBA Editor

List of Procedures:
  • Subroutine Procedure / Sub Procedure
  • Function Procedure
  • Event Procedure

Insert or Create Procedure by writing code

  • Open the module for which you want to write the procedure.
  • You can create a Sub, Function, or Property procedure. By typing Sub, Function, or Property. And the the name of Sub, Function, Property.
  • Type code for the procedure. Visual Basic concludes the procedure with the appropriate End Sub, End Function, or End Property statement.

Insert or Create Procedure by using the Insert Procedure dialog box

  • Open the module for which you want to write the procedure.
  • On the Insert menu, click Procedure.
  • Type the name for the procedure in the Name box of the Insert Procedure dialog box.
  • Select the type of procedure you want to create: Sub, Function, or Property.
  • Set the procedure's scope to either Public or Private.
  • You can select the All Local Variables as Statics to add the Static keyword to the procedure definition.
  • Click OK.

Select Subroutine Procedure Block

  • Click on the left of Public keyword.
  • Press Ctrl+Shift+PageDown on the keyboard.

Delete Subroutine Procedure Block

After you do the step in Select Subroutine Procedure Block. Press Delete on the keyboard.



Related Post:


Tidak ada komentar:

Posting Komentar

Various Other Posts