June 9, 200619 yr Hi, all. I'd like to be able to display some global variables on a layout. I couldn't find any reference to doing that in the documentation. I know I can watch what happens to my variables with the Data Viewer, but I would have some need for a more permanent display of that information... Move them into some table?... Thanks!
June 9, 200619 yr You can place script or global variables in a global text field from your script. The global text doesn't need to be related to your current table at all ... you can set the value from anywhere. And you can display the global on any layout in any table. You would use something like: Set Variable [ $CustomerID ; Value: CustomerID ] Set Field [ anyTable::anyGlobalText ; $CustomerID ] ... or whatever you need. If it is just for display, turn off 'Allow Entry in Browse' from field format. You can also set a global variable ($$variable) at file startup (and use it in a calculation) and it will maintain its value for the length of the session. LaRetta
June 10, 200619 yr Author OK, LaRetta. Thanks for the response. I was hoping that I might have overlooked some "direct" way of displaying those variables. But your suggestion is a quite acceptable way of doing it. Thanks for the suggestion!
Create an account or sign in to comment