hexagon logo

Show File name in Report Header

Hi

Im new in PC-DMIS world Wink (4.3 mr1, winxp:lividSlight smile

I create my personal label(fileheader.lbl) and i want show in program name(only xyz.PRG, not a full path). I dont want use macro or program variable etc... only xyz.lbl

My problem is: look at picture, last row...
The InStr expression dont work...I dontt know, I write something wrong or cant use it. Any idea??

Some test before concatenate full formula:



Sry my english....

Thank you for your help
Parents
  • Hi AndersI



    But what you would really need is the (in this variation of BASIC) non-existing "RINDEX(...)" which could be used to locate the *last* backslash, and then doing a RIGHT(...) using that information.
    Thats right. I was hoping to find a different way...

    I find it a major nuisance that PC-DMIS uses TWO DIFFERENT DIALECTS OF BASIC
    Good to know.

    Its not a major problem for me, I will use it full file path, small font light gray color Sunglasses


    Thank you for your reply, it was really helpful.
Reply
  • Hi AndersI



    But what you would really need is the (in this variation of BASIC) non-existing "RINDEX(...)" which could be used to locate the *last* backslash, and then doing a RIGHT(...) using that information.
    Thats right. I was hoping to find a different way...

    I find it a major nuisance that PC-DMIS uses TWO DIFFERENT DIALECTS OF BASIC
    Good to know.

    Its not a major problem for me, I will use it full file path, small font light gray color Sunglasses


    Thank you for your reply, it was really helpful.
Children
No Data