× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Title: RE: How to zero date in prefix area?

John,
I couldn't find an easy way to zero the dates either.
So, here's a macro that I wrote that seems to work.
If anybody knows a better way, please let me know.

/* zerodate.lx */
                                                 
done = 'No'
'bottom'
'extract prefix'
lastrow = substr(prefix,1,6)
'top'
'set prefixdefaulttext 000000'
                                                 
do while( done = 'No' )
  'extract prefix'
  currentrow = substr(prefix,1,6)
  'extract content'
  firstchar = substr(content,1,1)
  'set cursorpos 1'
  'primitive replacechar "' || firstchar || '"'
  'next'
  if currentrow = lastrow then do
    done = 'Yes'
  end
end
'set prefixdefaulttext' substr(date('S'),3,6)
'top'

Barry Hoffman
National Seminars


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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

This mailing list archive is Copyright 1997-2024 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.