>I think you actually asked for hex to decimal. The eval(x) returns the decimal value of a hex val. The transform() converts a decimal integer to hex.
Since VFP supports hex conversion normally, there's really no need to convert unless the value is already formatted as a string. By this I mean that you can assign a value directly (lnvar = 0xFF && 255) or as a defined constant.
Octal's another story, altogether. That would have to be a string and have to be parsed to determine its value.
George
Ubi caritas et amor, deus ibi est