s-news
[Top] [All Lists]

gui Dialog Box

To: <s-news@lists.biostat.wustl.edu>
Subject: gui Dialog Box
From: "Steffen Barembruch" <Steffen@Barembruch.de>
Date: Tue, 28 Nov 2006 13:43:52 +0100
Thread-index: AccS6ttiAKNqnGuWRH6k0JfvTm9sWQ==

Hey!

 

I created a very simple Dialog Box with the following code:

 

 

guiCreate("Property", Name="first", DialogControl="String", DialogPrompt="first")

guiCreate("Property", Name="group1",  Type="Group", PropertyList = "first")

guiCreate("Property", Name= "returnvalue", DialogControl = "Invisible", DefaultValue= "a")

 

test <- function(arg1){

  

   print(arg1)

   invisible()

  

}

 

guiCreate("FunctionInfo", Name="test", Function="test", PropertyList = "returnvalue, group1")

guiDisplayDialog("Function", Name="test")

 

Unfortunately I get the following error when entering  a string into the field:

Problem: Object "text" not found

 

If I enter a string included in quotation marks, the error does not occur and the string is passed to the function. How can I change that behaviour?

 

Thanks a lot

Steffen Barembruch

<Prev in Thread] Current Thread [Next in Thread>
  • gui Dialog Box, Steffen Barembruch <=