Same as SomeColumn and SomeTable. Shorthand for whatever your applicable names are. At the risk of stating the obvious (but then you said you were new to VFP), SomeCursor will be in this case a cursor, which is defined as CURrent Set Of Records. I.e., a subset of records in a table.
Specifies a range of records to be included in the count. The scope clauses are: ALL, NEXT nRecords, RECORD nRecordNumber, and REST. For more information on scope clauses, see the Scope Clauses online topic. Commands that include Scope operate only on the table in the active work area.
I did look at the COUNT command but what I need is to get VFP to count for each variation within a column.
e.g. how many SA? how many NI? how many RL? etc
something like:
count distinct column
currently I use:
set filt to column = 'SA'
count
which gives me what I want but not too elegant and if I want to know how many different values are in this column I need to set filt to each value and then add them up at the end and hope it matches
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.