Zcast Posted September 19, 2009 Posted September 19, 2009 Is there a way to delete a layout that is no longer needed by using a script, or a OnLayoutLoad trigger? ex. I have first layout as a logon..once user enters correct "code", it moves them on to another layout. I don't want them getting that first layout again ever.
Vaughan Posted September 19, 2009 Posted September 19, 2009 Layouts cannot be deleted by script. Uncheck the option to display the layout in the layouts menu. That way the user can only get to the layout by a scripted process (or by entering layout mode and scrolling through the layouts, which they should not be able to do anyway).
Zcast Posted September 19, 2009 Author Posted September 19, 2009 Thanks Vaughan, but what I'm looking for is for a customer to be able to see the layout the very first time they run the file, enter a serial code which will take them to a different layout, and for them to NEVER see the serial layout again when they open the file. I'm sure it can be done by scipting, but I'm very new to FM, ad not a great scripter yet. Any suggestions on which way to go with the script. I've already got the layouts, serial, and everything working correctly, I just need to "hide" the serial layout the next time the file is used. Thanks for your help.
bcooney Posted September 19, 2009 Posted September 19, 2009 (edited) Sounds like you need: If isempty (serial) go to layout1 else go to layout2 end if in your startup script. Edited September 19, 2009 by Guest
Recommended Posts
This topic is 5613 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now