SAP-Forum.ORG
   
This web site isn't affiliated with, sponsored by, or approved by SAP AG. Is only a SAP users community.

Go Back   SAP-Forum.ORG > SAP Forums > SAPScript - Smartforms

Aprenda SAP!
Reply
 
Thread Tools Display Modes
  #1  
Old 08-15-2011, 08:47 PM
SAPMM SAPMM is offline
Senior Member
 
Join Date: May 2010
Location: Virginia
Posts: 238
Default Singleton in VBA

Hi everyone,

I want to know whether it is possible to create Singleton Pattern in VBA?

Have anyone a idea? Thanks in advance.

SAPMM
Reply With Quote
Sponsors
  #2  
Old 08-15-2011, 08:55 PM
Lala Lala is offline
Senior Member
 
Join Date: May 2010
Location: Chicago
Posts: 394
Default Re: Singleton in VBA

Two seconds of Google brought this:

http://www.pcreview.co.uk/forums/sin...-t1889576.html

dont know if it helps but you can try ...

Cheers!

Lala
Reply With Quote
  #3  
Old 08-15-2011, 09:10 PM
SAPMM SAPMM is offline
Senior Member
 
Join Date: May 2010
Location: Virginia
Posts: 238
Default Re: Singleton in VBA

I have found the Solution. It´s not really Singleton but it works.

I check the Internet Explorer Sessions with Objects in conjuction with Windows Instance Check.

Short Example:

1. Create Variables
2. define browser (Local place of exe)

Then this Code..

Set objWMI = GetObject("winmgmts:" & _
"{impersonationLevel=impersonate}!
" & strPC & "\root\cimv2")
Set objProc = objWMI.ExecQuery _


Regards,
SAPMM
Reply With Quote
Entre a los Links relacionados
Reply

Bookmarks

Thread Tools
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. The time now is 10:21 AM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Forum Design By inferno