Options

Errors in conversion

jemmyjemmy Member Posts: 247
Folks,

After going through 1 week of training material reading and nightly online researches, I looked at the C/AL programming this past weekend and noticed that it had several problems. :shock:
When I assigned a text to a field (type: date), I got errors:
Type conversion is not possible because 1 of the operators contains an invalid type. Date:= Text
Anyone could tell me how to figure it out. (this should be a simple, but I'm so weak on these). :?

Thanks in advance.

Jemmy

Comments

  • Options
    Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    Have a look at the EVALUATE function. This function is used to convert datatypes.
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • Options
    jemmyjemmy Member Posts: 247
    Thanks Luc, it works! :lol:

    EVALUATE is an answer.

    My steps earlier was trying to use typecast like DATE (var) and always failed hehe.. :wink:

    Jemmy
Sign In or Register to comment.