CHECK-SUM

0 views
Skip to first unread message

MBTra...@aol.com

unread,
May 7, 2008, 5:15:21 AM5/7/08
to OpenQM
I use information given by the CHECK-SUM feature of Pick to determine
whether or not certain data items have changed.

Short of writing my own routine, can anyone suggest a similar tool [or
workaround] on QM?

Malcolm Bull

Martin Phillips

unread,
May 7, 2008, 5:41:33 AM5/7/08
to Ope...@googlegroups.com
Hi Malcolm,

QM has the CHECKSUM() function in QMBasic. You could build an I-type
dictionary item and then use this (or an equivalent EVAL expression) in a
query.


Martin Phillips
Ladybridge Systems Ltd
17b Coldstream Lane, Hardingstone, Northampton, NN4 6DB
+44-(0)1604-709200

MBTra...@aol.com

unread,
May 7, 2008, 7:58:08 AM5/7/08
to OpenQM
Thanks, Martin, I thought that I had looked everywhere. CHECKSUM() is
just what I wanted.

Malcolm Bull

CDMI - Steve Trimble

unread,
May 7, 2008, 10:21:26 AM5/7/08
to Ope...@googlegroups.com
Martin:
i'm trying to learn more about I type dictionary items.
could you show a working example of what you've suggested.
maybe if i see enough examples, the light bulb will eventually burn brighter.
 
thanks!
 
Steve Trimble
Computerized Data Mgmt Inc
PO Box 13403
Maumelle, AR 72113
(501) 803-0974 09:00am - 6:00pm CST
 
Home of self defense products: http://www.protecturself.com

Martin Phillips

unread,
May 7, 2008, 10:41:29 AM5/7/08
to Ope...@googlegroups.com
Hi Steve,
 
An I-type is simply a QMBasic expression, just as you might write on the right of an assignment statement in a program. The names used in this expression are other items defined in the same dictionary.
 
In this particular example, the expression is simply use of the CHECKSUM() function.
 
1: I
2: CHECKSUM(fieldname)
3:
4: Checksum
5: 10R
6: S
 
I do not know how Malcolm has used this but, if all he wanted was a checksum over the entire record, line 2 could be
   CHECKSUM(@RECORD)

CDMI - Steve Trimble

unread,
May 7, 2008, 10:46:56 AM5/7/08
to Ope...@googlegroups.com
thanks Martin - the CHECKSUM(@RECORD) actually makes sense to me.
i understand the syntax of the I type (which is well documented). i just need help seeing examples of real uses.
 
thanks again!
 
Steve Trimble
Computerized Data Mgmt Inc
PO Box 13403
Maumelle, AR 72113
(501) 803-0974 09:00am - 6:00pm CST
 
Home of self defense products: http://www.protecturself.com
----- Original Message ----
From: Martin Phillips <martinp...@ladybridge.com>
To: Ope...@googlegroups.com

CDMI - Steve Trimble

unread,
May 7, 2008, 10:55:15 AM5/7/08
to Ope...@googlegroups.com
Martin:
i just visited the online docs and can't seem to find where CHECKSUM() is documented.
i looked in the index (where normally i find all syntax) and i performed a search on 'CHECKSUM' and 'CHECKSUM()' with no results.
 

Martin Phillips

unread,
May 7, 2008, 11:02:42 AM5/7/08
to Ope...@googlegroups.com
Hi Steve,

> i just visited the online docs and can't seem to find where CHECKSUM()
> is documented.

We were recently told about this omission. It has been corrected for the
next release.

Reply all
Reply to author
Forward
0 new messages