MyRecordRef.OPEN( intTableNo ); MyFieldRef := MyRecordRef.FIELD( 1 );This allows me to do Get, Validate etc.. using the ref's. Notice that in both cases, an integer is used as a parameter.
MyRecordRef.OPEN( DATABASE::strTableName ); MyFieldRef := MyRecordRef.FIELD( FIELDS::strFieldName );Below is an interesting and valid method of resolving a Table reference to an integer. However, even though "Customer" below resolves to an object it is not derived from a string variable, which is what I am trying to accomplish.
MyRecordRef.OPEN( database::"Customer" );Any discussion on this appreciated.
Comments
Thanks,
MCP - Dynamics NAV
variable rec_Field is a record variable with subtype Field
rec_Field.SETRANGE(TableNo, intTableNo);
rec_Field.SETRANGE(FieldName, strFieldName);
rec_Field.FIND('-')
Wow, thanks! I've been looking for this since ages...