Ignore:
Timestamp:
Nov 15, 2015, 8:00:26 PM (9 years ago)
Author:
Andreas Schnellbacher
Message:
  • Added a message for successfully unlinking an .ex file.
  • Added trailing punctuation to messages.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/src/netlabs/macros/linkcmds.e

    r2434 r2652  
    7474
    7575   if rc < 0 then
    76       call winmessagebox( UNABLE_TO_LINK__MSG '"'modulename'", rc = 'rc,
     76      call winmessagebox( UNABLE_TO_LINK__MSG '"'modulename'", rc = 'rc'.',
    7777                          ErrorText,
    7878                          16416)  -- OK + ICON_EXCLAMATION + MB+MOVEABLE
     
    9292   waslinkedrc = linked( modulename)
    9393   if waslinkedrc >= 0 then  -- >= 0, then it's the number in the link history
    94       ErrorText = 'Module "'modulename'" already linked as module #'waslinkedrc
     94      ErrorText = 'Module "'modulename'" already linked as module #'waslinkedrc'.'
    9595      xrc = 0        -- if already linked
    9696
     
    116116      -- sometimes also rc = (null) is returned on success.
    117117      if linkedrc = -307 then
    118          ErrorText = 'Module "'modulename'" not linked, file not found'
     118         ErrorText = 'Module "'modulename'" not linked, file not found.'
    119119      elseif linkedrc = -308 then
    120          ErrorText = 'Module "'modulename'" not linked, invalid filename'
     120         ErrorText = 'Module "'modulename'" not linked, invalid filename.'
    121121      elseif linkedrc < 0 then
    122122         -- Use linkrc, because it's more detailed. linked() returns only
    123123         -- >=0, -1, -307, -308, while link returns some more like -290.
    124          ErrorText = 'Module "'modulename'" not linked, 'sayerrortext(linkrc)
     124         ErrorText = 'Module "'modulename'" not linked, 'sayerrortext(linkrc)'.'
    125125      else
    126126         ErrorText = LINK_COMPLETED__MSG''linkedrc' "'modulename'"'
     
    219219   if unlinkrc then
    220220      if unlinkrc = -310 then
    221          sayerror 'Module "'FullPathName'" not unlinked, unknown module'
     221         sayerror 'Module "'FullPathName'" not unlinked, unknown module.'
    222222      elseif unlinkrc = -301 then
    223          sayerror 'Module "'FullPathName'" not unlinked, module in use (better restart EPM)'
     223         sayerror 'Module "'FullPathName'" not unlinked, module in use (better restart EPM).'
    224224      elseif unlinkrc = -302 then
    225          sayerror 'Module "'FullPathName'" not unlinked, defined keyset in use (better restart EPM)'
    226       else
    227          sayerror 'Module "'FullPathName'" not unlinked, rc = 'unlinkrc
    228       endif
     225         sayerror 'Module "'FullPathName'" not unlinked, defined keyset in use (better restart EPM).'
     226      else
     227         sayerror 'Module "'FullPathName'" not unlinked, rc = 'unlinkrc'.'
     228      endif
     229   else
     230      sayerror 'Module "'FullPathName'" successfully unlinked.'
    229231   endif
    230232
Note: See TracChangeset for help on using the changeset viewer.