![]() |
#1
|
|||
|
|||
![]()
Hello All,
when i run this lil snippet, I get presented with an error. It still works though. Anyone know whats going wrong???? <code> '------------- Sub TESTOPENCP() Dim myappid As String, returnvalue mayappid = Shell("C:\Program Files\Corel\Corel Graphics 12\Programs\CorelPP.exe", 1) AppActivate myappid End Sub '---------------- <code/> The application and the error pop up at the same time. Any clues are welcomed. Thanx, Andy |
#2
|
||||
|
||||
![]()
The error message I got was "variable not defined". That is because you have myappid spelled as mayappid. Fixed that and it works fine.
Also you may want to look here: http://forum.oberonplace.com/showpos...94&postcount=2 This example shows how you can test to see if the application is already running. Might help. Thanks, Shelby |
#3
|
|||
|
|||
![]()
Shelby, thankyou. The link you provided gave me some valuable insight. However, Yes I did make an error in my spelling. Strangely did not affect anything. The AppActivate command seems to be the trouble. It still Gave me an error after I checked spelling. Anyway.... I looked further and found that negating the .....AppActivate myappid..... altogether, seemed to work.
weird??! Anyway, Thankyou. again Andy |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Attributes in Corel Draw | dueless | CorelDRAW/Corel DESIGNER VBA | 8 | 09-01-2008 06:56 |
Vector data from Paint to Draw 12? | jimmr | General | 4 | 26-05-2005 06:24 |
Photopaint VBA from 12 to 9 | tonywong | Corel Photo-Paint VBA | 2 | 20-05-2005 11:22 |
Draw 12 : Printing Problem | Hernán | General | 3 | 20-09-2004 10:54 |
Draw 12 VBA: Preliminary changes | Alex | CorelDRAW/Corel DESIGNER VBA | 2 | 18-10-2003 06:16 |