value=dbGetFieldByName(fieldName: string)
The function gives value of one item of the actual record in the database. The item is defined by its name. The function gives value in the format in which the item in the database is defined. If, for example the item ordNumber is defined as integer, the given value is integer too. When an eror occurs in database, the function gives back an empty text item.
ParametersThe parameter of the function is fieldName, whose type is string and we insert name of the item defined in the database.
Example - Director
global mdb
ordNumber=mdb.dbGetFieldByName("ordNumber")
company=mdb.dbGetFieldByName("company")
type=mdb.dbGetFieldByName("type")
Example - AuthorwareordNumber:=CallObject(mdb,"dbGetFieldByName","ordNumber")
company:=CallObject(mdb,"dbGetFieldByName","company")
type:=CallObject(mdb,"dbGetFieldByName","type")