Virtual Field
Posted: Fri Aug 07, 2020 8:06 am
Trying to create my first virtual field. Our IBMi database stores the date in 4, 2 character fields (each 2,0). I want to create a virtual field that is MMDDYY (don't need century). My virtual field derivation looks like the below, is there a better way?
#SOendymd := (#soendy.AsString + #soendm.AsString + #soendd.AsString).AsNumber
Somehow this doesn't seem to work all of the time.
#SOendymd := (#soendy.AsString + #soendm.AsString + #soendd.AsString).AsNumber
Somehow this doesn't seem to work all of the time.