'lo gang.  Here is a wierd one which has me stumped.  Why will the
following not work?

REBOL [
  Title: "InformeR"
   File: %informer.r
   Author: "Deryk Robosson"
   Email: [EMAIL PROTECTED]
   Date: 04-Jul-2000
   Purpose: { A simple menthod for providing simple requesters }
]

image-path: http://www.google.com/images/Title_Paint.gif

inform-error: func [
  {Displays an error requester}
  ttext [series!] {Title text}
  itext [series!] {Text to be displayed}
  gatext [series!] {Gadget Text}
  /local error-img
  ][
    inform layout [
    subtitle ttext
    across image image-path text itext 'return
    button gatext [hide-popup]
  ]
]

view layout [
  inform-error "Title Text" "This is some error text." "Okay"
]

results in:

Unknown word or style: inform-error
Misplaced item: "Title "
Misplaced item: "This i"
Misplaced item: "Okay"

The window opens but nothing is displayed.  I'm still baffled as to why
one cannot just mix and match /view and /core at any time and place.

Regards,
Deryk

Reply via email to