Jump to content

Deleting a layout by using a script?


This topic is 5613 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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.

Posted

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).

Posted

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.

Posted (edited)

Sounds like you need:

If isempty (serial)

go to layout1

else

go to layout2

end if

in your startup script.

Edited by Guest

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.