Options

Function: ISRECORD in Variant var

WiLLy_CoYoTeWiLLy_CoYoTe Member Posts: 7
Hi...
I assign a Record to a Variant var...

varVariant := recGLAccount;

Someone know how i can return the number of the table "G/L Account" or his name from the Variant var.
Something like... varVariant.Number... that obviously doesn't work... 8-[
](*,)

Thank's for your help... #-o

Comments

  • Options
    kinekine Member Posts: 12,562
    I assume that it will be not easy if possible. Variant type is something what is "finished" from 50% and is mainly there for Automations and OCXs.
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Options
    WiLLy_CoYoTeWiLLy_CoYoTe Member Posts: 7
    I use it sometimes...
    but never as Record... and never as OCX or Automation... :lol:
    But... if Variant can work as Record... it can be helpfull to something... [-(
  • Options
    MatthiasKönigMatthiasKönig Member Posts: 14
    mmhh anybody a solution for this problem?
  • Options
    pduckpduck Member Posts: 147
    Hi...
    I assign a Record to a Variant var...

    varVariant := recGLAccount;

    Someone know how i can return the number of the table "G/L Account" or his name from the Variant var.
    Something like... varVariant.Number... that obviously doesn't work... 8-[
    ](*,)

    Thank's for your help... #-o

    What do you want to do? May be you can use RecordRef to assign different kind of records and get their names e.g.?
Sign In or Register to comment.