Hugh,
If you use copyToArray(arrayName), the array will hold the values of the
fields starting with column 1 and ending with the last column in the
table. The values can then be accessed by either field nmae or ordinate
column position: e.g.
var
ar Array[] AnyType
tc Tcursor
endvar
try
tc.open(":MyAlias:MyTableName.db")
scan tc:
tc.copyToArray(ar)
switch
case tc.(1) : ;;// do something etc.
endswitch
endscan
This assumes that the first column is a logical field.
--
David
______________________________________________________________________
: Datacraft Systems, Inc. - Paradox Consulting and Training
: URL: http://www.db.com - Multi-user Database Development and Design
: Philadelphia - New York - Washington DC
> I was wondering if anyone had any suggestions on this.
> I have a table with numerous logical fields and a couple of memo fields. What
> I'd like to do is this:
> When someone enters a false logical in a field, that field name will be added
> to one of the memo fields.
> I've got a form for users to enter the data, so I'm thinking that that can be
> designed to do the job, but I'm not sure exactly how. I am a OPAL beginner, but
> don't let that scare you away from suggesting code.
> Please let me know if anyone has any ideas. Anything will be much appreciated.
> Thanks in advance.