OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Corel User Forums > CorelDRAW > Macros/Add-ons

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 25-02-2013, 02:01
coreldrawer coreldrawer is offline
Junior Member
 
Join Date: Nov 2008
Posts: 7
Default Document ID

Hello. Is there a unique identifier of the document on Corel X6?
I create own docker. But there exists a problem when multiple documents open at once, and the user switches between documents. So, I need a Document.ID or something similar.
Reply With Quote
  #2  
Old 25-02-2013, 23:46
shelbym's Avatar
shelbym shelbym is offline
Senior Member
 
Join Date: Nov 2002
Location: Cheyenne, WY
Posts: 1,782
Blog Entries: 11
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 Document Properties

You could use Document.Properties to set a unique identifier for you needs:
Code:
Sub Test() 
 Const MyMacroName As String = "MyTestMacro" 
 With ActiveDocument 
  .Properties(MyMacroName, 1) = "My String 1" ' String 
  .Properties(MyMacroName, 2) = 1 ' Integer 
  .Properties(MyMacroName, 3) = Atn(1) * 4 ' Double 
  MsgBox .Properties(MyMacroName, 1) 
  MsgBox .Properties(MyMacroName, 2) 
 MsgBox .Properties(MyMacroName, 3) 
 End With 
End Sub
Best of luck,

-Shelby
Reply With Quote
  #3  
Old 26-02-2013, 01:26
coreldrawer coreldrawer is offline
Junior Member
 
Join Date: Nov 2008
Posts: 7
Default

Thanks. Now I use Document.Notes. I trying use Document.Properties, but I could not understand how it looks on C# syntax.
How it looks on C# code?
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


All times are GMT -5. The time now is 02:31.


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