Page 1 of 1

Return NULL when CurrentTable()->TableName is empty

Posted: Sun Aug 16, 2020 12:31 pm
by bui
On the Server Script -> Global -> All Page -> Page Loading
I Try to get the TableName
if(CurrentTable()->TableName == "xxxxx"){
------
----
---
}

On the the Custom File it got an error for CurrentTable()->TableName as it is not a table

So I request to kindly return NULL / FALSE on the Custom File or the Custom File Name

Re: Return NULL when CurrentTable()->TableName is empty

Posted: Tue Sep 08, 2020 9:17 am
by Webmaster
You can use:

@CurrentTable()->TableName

In v2021, you can also use:

CurrentTableName()