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

Jumping out of loop b4 acting on all foundset


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

Recommended Posts

Posted

Attached is snippet my code

If I use Delete All command....

Its deleting other records not in foundset ?

So i put it in a loop

Why am i exiting loop after 2 deletes not loop

Enter find

set field

Perform find

Get foundcount >0

# comment it is about 100

Go to first record

Loop

delete record

Goto Next record Skip if LAST

Endloop

find_image1.jpg

Posted

Its deleting other records not in foundset

Then it is probable you have a relationship that is set to delete the related records.

The loop is pointless, use Delete All records.

Posted

Thank I used Delete aLL it was deleting literally all. The file is a parent.. Were do i find out how file is set to delete records.. thanks

Posted

Thank I used Delete aLL it was deleting literally all. The file is a parent.. Were do i find out how file is set to delete records.. thanks

By looking at the relationship graph.

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