OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Developer Forums > VBA > CorelDRAW/Corel DESIGNER VBA

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 15-06-2010, 20:35
xombie
Guest
 
Posts: n/a
Question VBA updating question

Hey all.
How does one know what to update? Sounds like a silly question but I really dont know. My code that I wrote in v12 has worked all the way through x3 & x4. At least I think it has. Corel Draw has always been notably unstable for me since v7 and I wasnt writing code back then. Thusly I am not sure if my code is what made x3 and x4 totally bogus, however, my co-workers use it and dont have the problems Ive had over the past couple of years.
Any tips on what to look for or how to tell if writen code is too old to function properly would be most welcome.
Cheers!
Reply With Quote
  #2  
Old 15-06-2010, 21:28
runflacruiser's Avatar
runflacruiser runflacruiser is offline
Senior Member
 
Join Date: Jun 2009
Location: Pigeon Forge, TN USA
Posts: 811
Default

Hi.
Really the only way for us to tell is by seeing the code, or at least the section where the error occurs.

-John
Reply With Quote
  #3  
Old 15-06-2010, 21:36
shelbym's Avatar
shelbym shelbym is offline
Senior Member
 
Join Date: Nov 2002
Location: Cheyenne, WY
Posts: 1,791
Blog Entries: 13
Send a message via ICQ to shelbym Send a message via AIM to shelbym Send a message via MSN to shelbym Send a message via Yahoo to shelbym
Default Test...test...test....

Agreed the only way is to get a hold of the new version and test...test...test....I have been using VBA since they put it in and CorelSCRIPT before that. 95% of the time things work great but sometimes there are issues, for example when they redid the layers in X4 it broke a couple things. :-)

Test...test...test

-Shelby
Reply With Quote
  #4  
Old 15-06-2010, 22:12
runflacruiser's Avatar
runflacruiser runflacruiser is offline
Senior Member
 
Join Date: Jun 2009
Location: Pigeon Forge, TN USA
Posts: 811
Default

Also...If you would rather not post your code and need tips on how to test and debug code just let us know.

PS Shelby. What ever happened to those cool little CorelScript effects!

-John
Reply With Quote
  #5  
Old 16-06-2010, 10:52
xombie
Guest
 
Posts: n/a
Smile Thanx

Thank you all so much for the prompt answers!
So its safe to assume that if the code works then there is no reason to re write. I was worried that the code I had written was making x3 & x4 unstable. I thought it might be interfearing with the regular coding of the software although I think I kept the scope of my modules contained.
This brings me to another question.... Can the code I write, indeed, interfear with the regular coding?
Thanx Again!
Reply With Quote
  #6  
Old 16-06-2010, 13:46
runflacruiser's Avatar
runflacruiser runflacruiser is offline
Senior Member
 
Join Date: Jun 2009
Location: Pigeon Forge, TN USA
Posts: 811
Default

HI,
If it works then you can leave it. If it was causing a problem then you may have to rewrite part of it. You can even use conditionals like this:

Code:
If VersionMajor = 13 Then
        'do this
    End If
    If VersionMajor = 14 Then
        'then do this
    End If
    If VersionMajor = 15 Then
        'then do this
    End If
Quote:
Originally Posted by xombie View Post
Can the code I write, indeed, interfear with the regular coding?
Thanx Again!
Yes, Wrongly coded vba can affect Draw's operation and even change important settings.
-John
Reply With Quote
  #7  
Old 16-06-2010, 14:38
xombie
Guest
 
Posts: n/a
Default

This is great stuff to know. Thanx So Much!
Andy
Reply With Quote
Reply


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
refreshing / redrawing /updating the screen Rick Randall CorelDRAW/Corel DESIGNER VBA 6 08-12-2009 02:25
Stop and start screen updating? DChinell CorelDRAW/Corel DESIGNER VBA 5 16-11-2008 15:39
ETC Question!!!! [Please~~~~~] ljesus7 CorelDRAW/Corel DESIGNER VBA 2 08-03-2007 07:45
question sejal01 CorelDRAW/Corel DESIGNER VBA 1 22-12-2004 22:27
vba question bumblebee CorelDRAW/Corel DESIGNER VBA 4 04-08-2004 16:07


All times are GMT -5. The time now is 05:20.


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