If I am understanding the process correctly. One question is: how many keywords are there? I ask that because if there are more than, say 25, I might try something like this:

-Establish a main array for the main subfile. (Dynamic or fixed, your choice.)
-Establish a subfile of the keywords.
-write the main subfile in the desired order.
-when the user selects (by mouse, "X", or whatever) a main subfile record, pop up a window with the subfile of keywords and, say, a hint made of the first 40 or so characters of the long description.
-When the user selects the keyword (by mouse, "X", or whatever) update the main array and repopulate the main subfile.

One real advantage to using an array for the subfile is that making the subfile sortable by column heading becomes so very easy.


On 12/29/2014 3:39 PM, x y wrote:
I need to insert records into the middle of a subfile. The user can enter
a keyword that's attached to a long description and I need to get that
description into the body of the subfile.

I could add records to the end and then resequence when writing to the
database but that won't be satisfactory from a user experience
perspective--the user needs to see the full text in order as part of the
entry process. My subfile record length (including hidden fields) is about
400 bytes and I should have less that 50 records most of the time. I have
four 132-character subfile records on the screen and already have used the
fold/unfold option.

Copying the subfile to a variable-size array, inserting the records where
needed, and then reloading the subfile is an option.

Another option is to have A/B subfile control/detail set up records copy
from the "A" subfile (+ inserts) into the "B" subfile and then display the
"B" control record. SQL temporary tables and memory-resident tables are
possibilities also.

Where's a linked list when we really need it?

I'll be grateful for any suggestions and wish you all a Happy New Year.

thx...


This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].