Good News Everybody!
The new search engine is LIVE!
Please report any problems to david (at) midrange.com.
|
1) Why did the compiler even accept this? Assuming (mykds) was treated
as a single field, shouldn't the compiler have complained that mykds was not the same size as the first key field in the file. I'm not Barbara but I can answer this one. The reason is that since you are in /free a list of key fields in parentheses is a perfectly legal way to supply a partial (or indeed full) key. In fact most people I know use this in preference to %KDS as you can see exactly what key fields are in use. The reason the compiler doesn't complain is that as long as the base data type matches (char/num/date) it will effectively do an eval for you into a temp field that does match the key (first) key field's definition, and use that as the key. It is one of the features of the new free-form key support. If you'd done it in fixed form the compiler would have gotten upset. As to your second question I can't see why it would change it. Are you sure that is all that was changed? Jon Paris Partner400 www.Partner400.com
This mailing list archive is Copyright 1997-2026 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].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.