Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

OK, this what I need to happen. A user pushes a button to create a new record. A script checks to see how many records there are. If there are 5, a window saying "you can't have more than 5" pops up and stops the script. If there are less than 5 then the script will create a new record and quit.

How do I write this script? I know how to create a new record and display a message in a window. How do you test to see how many records there are?

Thanks for your time

Posted

It may be like this:

If Status(CurrentFoundCount)<5

New Record Request

else

Show Message("You can't have more than 5")

Endif

Status function works in V6, but in 7 You must use Get-function.

Posted

You may want to use Get(TotalRecordCount) if you want to include all records in the file and not only those in the found set.

This topic is 7212 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.