FieldGet() raises error if invalid field

Posted by RGriffin on  2002-02-11 10:13:38

The documentation to FieldGet() states that an empty string will be returned if the field does not exist in the table. However, an error is raised instead.


status: CLOSED    Urgency: LOW    As Of: 2002-02-11 10:13:38

Comment:

This was changed because too many times the problem was mispelled field names or the wrong table being accessed.  The raised error was needed to ensure the programmer could identify the error, instead of chasing a bug that did not exist if the program quietly returned an empty string.

If you need to determine if a field exists, you can wrap FieldGet() in a try..except block.

The documentation will be updated.