remote that support several devices provide a list of the supported devices with codes next to them. These device codes are an arbitrary assignment by ONEforALL. Device codes simply tell the remote that the TV you want to use is a SONY, for example, and to use the internal database of SONY TV infra-red codes.
There are a basic set of functions all device needs. TVs, for example, need POWER, Volume, channel, mute, menu, numbers, and a few other function commands to be operate. ONEforALL arbitrarily assigns a basic set of functions to the buttons on the remote for whatever device you've set it up for. Along with this BASIC set, the internal database of function codes contains additional "advanced" codes that control extra functions you TV may feature. These codes aren't normally assigned to buttons on the remote. To utilize any one of them, ONEforALL will give you an (again arbitrary) advanced code number for each advanced function. This number is simply a pointer to where the infra-red code your device requires is in the remote's internal database.
Device code: an arbitrary pointer to a SET of Infra-red commands in the remote.
Advanced code: An arbitrary pointer to a SPECIFIC infra-red command within a SET of commands for a given device.