![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: How to use ModName_ Topic Summary: Created On: 28-Feb-2007 19:13 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
I am trying to use the ModName_ to get a reference to a module. I tried the following code:
ModName_mRef = module("/Sandbox/Krishna/Test_Module_1") if (null mRef) print "Yes: else print "No" I get the error 'incorrect arguments for if '. I tried '_mRef' , 'module mRef' in place of 'mRef' but the result is the same. What is the correct use for getting a reference to a module (open or closed) by using the ModName_. We are using version 7.1. Thanks for any help - Krishna |
|
![]() |
|
![]() |
|
Try something like :
Module m = current ModName_ modRef= module(fullName( m)) |
|
![]() |
|
![]() |
|
It does not work. I opened a module and made it current. I am still getting the same error.
- Krishna |
|
![]() |
|
![]() |
|
If what you have in your original positing -- it won't work because "Yes: needs an end quote.
|
|
![]() |
|
![]() |
|
If you pasted your actual code into the forum then the problem is that you do not have a space between ModName_ and mRef.
If you have autodeclare turned on this will not be picked up by the interpreter. Instead it will define a variable called "ModName_mRef" of type ModName_. When you try to test mRef, the variable is undefined. ------------------------- Tony Goodman http://www.smartdxl.com |
|
![]() |
|
![]() |
|
Thanks for the reply, Tony. In fact I was entering the variable name soon after the underscore and that was the reason for the error.
- Krishna |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
How to use ModName_
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.