Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Can I specify namespace when opening an object in mvb basic program
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Rich Brim  
View profile  
 More options Feb 3, 2:35 pm
From: Rich Brim <richb...@hotmail.com>
Date: Fri, 3 Feb 2012 11:35:00 -0800 (PST)
Subject: Can I specify namespace when opening an object in mvb basic program
I wrote a routine that I am running in a namespace to process payments
in telnet session. Rather than logging to each namespace and running,
can I somehow specify namespace? I would do this with a q-pointer in
non OOP.

        payobj = "MVFILE.PAYMENT"->%OpenId(id)

thanks,
Rich


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rich Taylor  
View profile  
 More options Feb 3, 4:21 pm
From: Rich Taylor <Rich.Tay...@intersystems.com>
Date: Fri, 3 Feb 2012 21:21:42 +0000
Local: Fri, Feb 3 2012 4:21 pm
Subject: RE: [InterSystems-MV] Can I specify namespace when opening an object in mvb basic program
Rich,

A class will always run in the current context, that being the current namespace.  You can, however, programmatically switch namespaces to change the context you are running in.  The command to do this is

      $XECUTE 'ZNSPACE "new namespace"'

Just be sure to switch back to the namespace you started from when that section of code is complete.

Richard S Taylor
Sales Engineer
InterSystems Corporation
Office: 443-340-8614
FAX: 440-815-5805


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »