BookmarkSubscribeRSS Feed
seyeollim

Community Trekker

Joined:

Dec 27, 2015

How to check if there exists any data table in the window list?

I want to open a new invisible data table.  Is there simple way to check if the data table is loaded?

Usually I check the existence of any data table as below,  but it does not seem to work with the invisible data table.

if(window("")=={}, TableExist =0 ,);

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson

Super User

Joined:

Jun 22, 2012

Solution

Re: How to check if there exists any data table in the window list?

Assuming you know the name of the data table, or you know the variable handle that points to the table of interest, what I do is:

If(try(dt<<get name,"")=="", TableExist=0);

Jim
2 REPLIES
txnelson

Super User

Joined:

Jun 22, 2012

Solution

Re: How to check if there exists any data table in the window list?

Assuming you know the name of the data table, or you know the variable handle that points to the table of interest, what I do is:

If(try(dt<<get name,"")=="", TableExist=0);

Jim
seyeollim

Community Trekker

Joined:

Dec 27, 2015

Re: How to check if there exists any data table in the window list?

Yeah~!!
That's what I really want.   It's great.  Thanks~!!