Loading ...
Sorry, an error occurred while loading the content.
 

Re: [NRN] GetShort isn't getting it

Expand Messages
  • ebbtidalflats
    Ahhh, yes I do see. I had forgotten to consider this from the DOS point of view. Thanks for clearing this up. Eb
    Message 1 of 2 , Jul 2 7:54 AM
      Ahhh, yes I do see.

      I had forgotten to consider this from the DOS point of view.

      Thanks for clearing this up.


      Eb

      --- In ntb-clips@yahoogroups.com, Axel Berger <Axel-Berger@...> wrote:
      >
      > ebbtidalflats wrote:
      > > So what am I doing wrong in the clip below? Platform Windows XP Pro SP3:
      >
      > Wrong list, so I'll answer here.
      >
      > > H="TestShort
      > > ;why do some of these work, others don't?
      > > ;
      > > ;works:
      > > ^!Set %docname%=^$GetName(^$GetShort(^##)$)$
      > > ^!Info [L]"^%docname%"
      > > ;
      > > ;does NOT work:
      > > ^!Set %docname%=^$GetShort(^$GetName(^##)$)$
      > > ^!Info [L]"^%docname%"
      > > ;
      > > ;works:
      > > ^!Set %docname%=^$GetShort(^##)$
      > > ^!Set %docname%=^$GetName(^%docname%)$
      > > ^!Info [L]"^%docname%"
      > > ;
      > > ;does NOT work:
      > > ^!Set %docname%=^$GetName(^##)$
      > > ^!Set %docname%=^$GetShort(^%docname%)$
      > > ^!Info [L]"^%docname%"
      >
      > Reduce that to:
      >
      > > H="TestShort
      > > ^!Set %docname%=^$GetShort(^##)$
      > > ^!Info [L]"^%docname%"
      > > ;
      > > ^!Set %docname%=^$GetName(^##)$
      > > ^!Info [L]"^%docname%"
      >
      > See? GetShort returns a full path. GetName can access that and retrieve
      > the name. GetName returns a naked name alone. GetShort won't know where
      > to find a file with that name and can't work.
      >
      > Axel
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.