OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Developer Forums > VBA > Code Critique

Closed Thread
 
Thread Tools Search this Thread Display Modes
  #1  
Old 19-12-2003, 15:19
Alex's Avatar
Alex Alex is offline
Administrator
 
Join Date: Nov 2002
Posts: 1,941
Blog Entries: 4
Default *** Read me first ***

I think this section of the web site should be very useful to improve your coding practices and learn new things.

When you create your custom programs/macros you most likely face two main challenges: make your code function properly and make sure the code is efficient and works optimally.

In order to share knowledge and different tricks about using automation objects and methods in CorelDRAW, Designer and Photo-Paint you can post pieces of your written code here (a few lines, a function or a couple related functions) so that other people can review the code and suggest some improvements or other ways of implementing the functionality you are after.

Please keep the amount of code to be reviewed reasonable. Do not ask to review the whole solution of 2000 lines. Just some functionally complete pieces of 10-20 lines at a time. Along with the code itself supply the description of what the code does or at least what you want it to do.

To format your code properly, use the
Code:
...
tag pair. For example:

Code:
Sub Test()
    Dim s As Shape
    Set s = ActiveLayer.CreateRectangle(0, 0, 2, 2)
End Sub
This will format the code as shown in the following post...

Don't forget to mention the application you are writing the code for (CorelDRAW, Corel DESIGNER, Corel PHOTO-PAINT), its version and the programming language you are using (VBA, stand-alone VB, C++, Delphi, C++Builder, etc).

Create a new thread for each piece of code to be reviewed and give the thread a easy to identify subject describing what code does (e.g. "Draw 11: Exporting each page to GIF")
  #2  
Old 19-12-2003, 15:20
Alex's Avatar
Alex Alex is offline
Administrator
 
Join Date: Nov 2002
Posts: 1,941
Blog Entries: 4
Default Re: *** Read me first ***

Here is how the code sample shown above will be formatted on this board if you use the code tag:

Code:
Sub Test()
    Dim s As Shape
    Set s = ActiveLayer.CreateRectangle(0, 0, 2, 2)
End Sub
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
files import graphicdesigner CorelDRAW/Corel DESIGNER VBA 11 19-11-2004 23:56
how to read point position (x/y) of any shape with VB-addin Andi CorelDRAW/Corel DESIGNER VBA 1 09-09-2004 08:32
Read Data from Excel File LxRAE CorelDRAW/Corel DESIGNER VBA 5 14-04-2004 02:10
*** Read me first before posting new questions *** Alex CorelDRAW/Corel DESIGNER VBA 0 09-03-2004 08:51
Read text into textboxes? Steve CorelDRAW/Corel DESIGNER VBA 13 26-09-2003 10:42


All times are GMT -5. The time now is 13:34.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.
Copyright © 2011, Oberonplace.com