tom robinson Posted February 15, 2003 Posted February 15, 2003 I'm trying to implement a global field [g_recent] that lists the last 10 records accessed within a file. This "stack" is updated [insert with calculated result] with navigation buttons [a pattern check "sub" script eliminates duplicates]. How to delete line 11 of g_recent when a new line is inserted into the stack. [email protected]
Vaughan Posted February 15, 2003 Posted February 15, 2003 Find the location of the paragraph before the line to delete. Then use the Set Field function to replace the field contents with the string up to that paragraph minus 1 character. The hardest part is finding the location of the paragraph. The Position(text, search string, start, occurrence) function will do the job of finding the paragraph. The Left(text, number) function generates the string. The function will look like this: Left(text, Position(text, "
Recommended Posts
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