Normal Topic @USERID() not recognized - why? (Read 463 times)
Bharat_Naik
Senior Member
Members
*****
Offline


Ever ready to learn and
share

Posts: 1202
Location: Chicago,  Illinois
Joined: Dec 16th, 2003
@USERID() not recognized - why?
Apr 19th, 2007 at 8:29am
Print Post Print Post  
Code
Select All
If @USERID() = "bnaik" then
	{
		ClearDefaultTab()

		 If @CloseCommandArea( ) = 1
		{
			  closeCommandArea(0)
		}
	}

 



I want only certain user to be able to open the Command tree. In the above code, the error window points out that @UserID is an unknown Identifier.  It is a function that is supposed to return UserID.  What am I doing wrong?

Bharat Naik
  
Back to top
 
IP Logged
 
Bharat_Naik
Senior Member
Members
*****
Offline


Ever ready to learn and
share

Posts: 1202
Location: Chicago,  Illinois
Joined: Dec 16th, 2003
Re: @USERID() not recognized - why?
Reply #1 - Apr 19th, 2007 at 8:43am
Print Post Print Post  
Well, the documentation on Page 230 of the Programming manual needs to be corrected. It should be @UserID instead of @UserID (). 

The correct code should be

Code
Select All
If @USERID = "bnaik" then
	{

		ClearDefaultTab()
	   If @CloseCommandArea( ) = 1
		{
			  closeCommandArea(0)
		}
	}

 

  
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2480
Joined: Aug 20th, 2003
Re: @USERID() not recognized - why?
Reply #2 - Apr 19th, 2007 at 1:20pm
Print Post Print Post  
Hello Bharat,

I will pass this along to the documentation team. Thank you for reporting it.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged