Andre-

Thursday, January 22, 2004, 12:49:58 AM, you wrote:

Here's what I use to set the path to an external library:

global useFullPath

on mouseup
  -- Set useFullPath to true during development and testing
  -- then set it to false for final build,
  -- where you will place the external library in the same
  -- folder as the stack itself.
  put true into useFullPath
  
  set the itemDelimiter to "/"
  answer file "Find an external DLL"
  if it is not empty then
    if useFullPath then
      -- Specify the full path location of the external library
      set the externals of this stack to it
      -- Display the path if you want
      put it
    else
      -- Extract just the filename from the specified path.
      -- Put the external library in the same directory as the stack.
      -- In this case the external library should be in the defaultFolder
      -- which by default is the same folder as the stack.
      set the externals of this stack to the last item of it
      -- Display the path if you want
      put the last item of it
    end if
  end if
end mouseup

-- 
-Mark Wieder
 [EMAIL PROTECTED]

_______________________________________________
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to