C/Front and DateFormula

guidorobbenguidorobben Member Posts: 157
Hi,

I have a problem to write to a DateFormula Field From Excel.

AssignField(QueueT, EntryR, 2, "+3D")

I get the following error:
'+3D' is too big for the internal variable 'DateFormula'

I also tried:

AssignField(QueueT, EntryR, 2, "<+3D>")

If I skip this field, the record gets inserted, so the rest of the process works fine.

Doe anybody know how to solve this problem?

Thanks

Comments

  • bvbeekbvbeek Member Posts: 32
    Hi,

    I have a problem to write to a DateFormula Field From Excel.

    AssignField(QueueT, EntryR, 2, "+3D")

    I get the following error:
    '+3D' is too big for the internal variable 'DateFormula'

    I also tried:

    AssignField(QueueT, EntryR, 2, "<+3D>")

    If I skip this field, the record gets inserted, so the rest of the process works fine.

    Doe anybody know how to solve this problem?

    Thanks

    Please try this:

    OLD: AssignField(QueueT, EntryR, 2, "<+3D>")
    NEW: AssignField(QueueT, EntryR, 2, '+3D')

    Let me know!
    Yours,
    Bart van Beek
    Boltrics Professionals B.V. | www.boltrics.nl
    Nekovri Dynamics | 3PL Dynamics
  • guidorobbenguidorobben Member Posts: 157
    Didn't work. Excel doesn't like the '

    Any more ideas?
  • ufukufuk Member Posts: 514
    Are you trying to write to Excel or read from excel? Can you explain more?
    Ufuk Asci
    Pargesoft
  • guidorobbenguidorobben Member Posts: 157
    I want to write a value from excel to a Navision-DB
  • ufukufuk Member Posts: 514
    Are you trying to calculate a newdate based on an Excel date field with a date formula expression in Navision?

    I have tested reading a date from Excel and use calcdate to generate a new date. I had no problem in the code below:
    Text001 := '+3D';
    IF EVALUATE(VarDate,FORMAT(XlSheet.Range('A' + FORMAT(i)).Value)) THEN
      NewDate := CALCDATE(Text001,VarDate);
    
    Ufuk Asci
    Pargesoft
  • guidorobbenguidorobben Member Posts: 157
    I'm trying to write a value from excel to the database. I get a C/Front error saying that it cannot handle the value

    AssignField(QueueT, EntryR, 2, "+3D")

    I get the following error:

    '+3D' is too big for the internal variable 'DateFormula'

    I want to write +3D to a Navision DatFormula Field using C/Front.
  • ufukufuk Member Posts: 514
    I do not have enough experience in C/Front. I think it must be something related with the syntax. Have you tried using only one ' with your expression. Something like '+3D or "'+3D", " ' " + "+3D" etc. I am only guessing :D

    Or isn't it possible to get data by C/Side?
    Ufuk Asci
    Pargesoft
Sign In or Register to comment.