Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous contents index
Next: tableindex.rownrs - Function Up: tableindex - Tool Previous: tableindex.setchanged - Function


tableindex.rownr - Function



Package utility
Module table
Tool tableindex


Find the row number matching the search value


Synopsis
rownr(key)


Description
Find the row number (1-relative) of the row containing the given search value. If no row is found, 0 is returned. This function can only be used if the index contains unique key values (thus if isunique returns T), otherwise rownrs should be used.
Normally the search value should be given as a record in which the field names match the column names in the index. However, if the index is formed from a single column the search value can be given directly as shown in the examples in the introduction. The data type should be correct though.



Arguments

key in search value
    Allowed: Record


Returns
Int




next up previous contents index
Next: tableindex.rownrs - Function Up: tableindex - Tool Previous: tableindex.setchanged - Function   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-10-15