Guardian17 Active Member Licensed User Longtime User Jan 11, 2015 #1 Is it possible to use a Process or Global Variable in a Layout Designer Script if the Layout gets loaded after the Variable has been set to a value? I'd like to do specific things in the Designer Script depending on whether the App is running on a smartphone or on a tablet. If not, is there ANY way to communicate information between the program code and a Layout Designer Script?
Is it possible to use a Process or Global Variable in a Layout Designer Script if the Layout gets loaded after the Variable has been set to a value? I'd like to do specific things in the Designer Script depending on whether the App is running on a smartphone or on a tablet. If not, is there ANY way to communicate information between the program code and a Layout Designer Script?
Erel B4X founder Staff member Licensed User Longtime User Jan 11, 2015 #2 Guardian17 said: Is it possible to use a Process or Global Variable in a Layout Designer Script if the Layout gets loaded after the Variable has been set to a value? Click to expand... No. However you can use this designer script code: B4X: If ActivitySize < 6 Then 'phone Else 'tablet End If Upvote 0
Guardian17 said: Is it possible to use a Process or Global Variable in a Layout Designer Script if the Layout gets loaded after the Variable has been set to a value? Click to expand... No. However you can use this designer script code: B4X: If ActivitySize < 6 Then 'phone Else 'tablet End If