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

Re: [Clip] Can't Insert variables as Text

Expand Messages
  • Harvey R. Savage
    ... Hi Peter, In all these variables you are using the dollar sign when it should be the Percent sign. Change them and see if it helps. hrs
    Message 1 of 1 , Jul 1, 2001
    • 0 Attachment
      psteeper@... wrote:
      >
      > Hello Everyone,
      >
      > This is a subset of a clip I'm working on:
      >
      > H="Picture Page"
      >
      > ^!SET %picpath%=^?[(1;T=D)Folder for pictures to be processed=D:\Web
      > Projects\Peter\photos\grad\]
      > ^!SET %alttext%=^?{(2;T=W)Alternate Text}

      > ^!Set $picfile$=^$GetFileName(^$GetFileFirst(^%picpath%;*.jpg;NAME)$)$
      > ^!Set $Height$=^$GetImgHeight(^$GetFileFirst(^%picpath%;*.jpg;NAME)$)$
      > ^!Set $Width$=^$GetImgWidth(^$GetFileFirst(^%picpath%;*.jpg;NAME)$)$
      > ^!InsertText ^$picfile$ ^$Height$ ^$Width$ ^%alttext%

      >
      > The variable that holds text %altext% will insert fine.
      >
      > The variables $picfile$, $Height$ and $Width$ generate syntax errors
      > when I try to use them with ^!InsertText. Any idea what's happening?
      >
      > I'm using Notetab Pro 4.85 and Windows 2000.
      >
      > Thanks
      >
      > Peter Steeper
      > www3.ns.sympatico.ca/psteeper

      Hi Peter,

      In all these variables you are using the dollar sign when it
      should be the Percent sign.

      Change them and see if it helps.

      hrs
    Your message has been successfully submitted and would be delivered to recipients shortly.