![]() |
|
|||||||
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi!!
I have a Visual basic program which invokes the corel macro. I just wanted to know is it possible to write a function which returns some string value back to the Calling visual basic program. e.g Visual basic program dim abd as String abd="call abc corel macro". Corel macro public function abc() as String Activedocument.getsize dbla,dblb dblTotlssize = dbla + dblb returm dbltotalsize ''this has to be returned to the visual basic program. Any help is appriciated Thank You Amol |
|
#2
|
||||
|
||||
|
Yes, it's possible. In VB/VBA you just assign the return value to the function name:
Code:
Public Function abc() As String ' Do something abc = "Some String" End Function |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Where can i get good tutors, docs, manuals by Corel VBA | ama | CorelDRAW/Corel DESIGNER VBA | 2 | 19-02-2004 09:17 |
| Can Corel 11 & VBA Do This? | Ron | Corel Photo-Paint VBA | 0 | 14-12-2003 19:48 |