Options

How do I dynamically determine fieldlength af a fieldRef ?

Jens_MadsenJens_Madsen Member Posts: 23
edited 2003-02-17 in Navision Attain
In my previous post "fieldref and validate" it was stated that you cannot determine the length of a fieldRef by using validate. :(

I cannot use maxstrlen either as the datatype is a variant. :?

Does anyone have any suggestions on how to do this dynamically ???

Comments

  • Options
    Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    Maybe you can lookup the value of your fieldRef variable in table 2000000041 Field, to determine the length of that field?
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • Options
    Jens_MadsenJens_Madsen Member Posts: 23
    yipeeeee!!! :D

    Your da man !!!!

    thanks!!!! :D
  • Options
    Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    Spread the word! :lol:
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • Options
    mortenreeslevmortenreeslev Member Posts: 11
    Why don't you use Length := FieldRef.LENGTH I think it's implemented in 3.60 :roll:
Sign In or Register to comment.