OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Corel User Forums > CorelDRAW > General

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-04-2011, 09:07
shark shark is offline
Senior Member
 
Join Date: Aug 2010
Location: Russia, Belgorod
Posts: 146
Default Call procedure through a pointer

Can VBA to call procedure by using a pointer ?

Code:
Sub SortbyNameProc
...
End Sub

Sub SortbySizeProc
...
End Sub

Sub SortbyDateProc
...
End Sub

Dim ProcPrr as Long
   select case SortType
   case stName
      ProcPtr = AddressOf(SortbyNameProc)
   case stSize
      ProcPtr = AddressOf(SortbySizeProc)
   case stDate
      ProcPtr = AddressOf(SortbyDateProc)
   End Select

   For n = 1 To DataSize
      ...
      'How to make this  ?
      call ProcPtr ' call procedure by using address ?
      ...
   Next n

Last edited by shark; 01-04-2011 at 10:56.
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
Assign procedure to dynamic button/label Craybe CorelDRAW/Corel DESIGNER VBA 0 28-10-2009 19:58
Get Shape.Copy() pointer in memory (c#) ! lebaron CorelDRAW/Corel DESIGNER VBA 1 07-02-2008 10:40
procedure after drag and drop diwin CorelDRAW/Corel DESIGNER VBA 15 29-05-2007 09:10
Macro Call from VFP BobReed CorelDRAW/Corel DESIGNER VBA 4 20-02-2005 20:25
some procedure questions bbolte CorelDRAW/Corel DESIGNER VBA 2 12-12-2002 11:49


All times are GMT -5. The time now is 14:18.


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