OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Developer Forums > VBA > Corel Photo-Paint VBA

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-07-2003, 06:03
NEHovis
Guest
 
Posts: n/a
Default Type Mismatch error in Corel PhotoPaint V9

When I run the first two lines in my code I get the desired results - the function returns a TRUE. When I replace those two lines with the next displayed lines, I get a type mismatch error. My goal is to be able to toggle the objects visability.

rot = CorelScript.GetObjectIsVisible(2)
Label1.Caption = rot

rot = CorelScript.ObjectVisible(2, 3, False)
Label1.Caption = rot
Reply With Quote
  #2  
Old 10-07-2003, 21:55
Alex's Avatar
Alex Alex is offline
Administrator
 
Join Date: Nov 2002
Posts: 1,941
Blog Entries: 4
Default Re: Type Mismatch error in Corel PhotoPaint V9

ObjectVisible is a routine which does not return any value. You need to call it like this:

Code:
CorelScript.ObjectVisible 2, 3, False
Reply With Quote
  #3  
Old 17-07-2003, 04:19
NEHovis
Guest
 
Posts: n/a
Default Thank You!

Thank You Alex!!!
It works Great!
Keep up the GOOD work!
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
Corel Capture 8 and Corel Script Helix CorelDRAW CS 0 13-12-2002 18:10


All times are GMT -5. The time now is 23:00.


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