Rebol Talk Forum  |  Getting Started  |  Newbie Help  |  Topic: why can't I clear the text?
Pages: [1] Print
Author Topic: why can't I clear the text?  (Read 355 times)
newbie
Guest


Email
why can't I clear the text?
« on: April 14, 2004, 10:38:39 PM »

Hi I would like to ask that why I can't clear the text

 list_data: layout [
                               
   
    t: text-list data db-view [
    probe face/picked ]

  across  
  tabs 100
  button "View" [val]  
  button "Delete" [delete-data]
  return
  button black "New" [clear-form]
  button black "Update" [update-data]
  return
  button black "SSO"

 
   
                       
]
       
val: does[
  value: reduce (t/picked)
  val-change: to-string value
  ;copy_value: copy change_value  
  ;print value1
 
foreach [Name Phone_num Company_name Address Email] db-select/where [Name Phone_num Company_name Address Email] tblcontact [ Name = "stella"] [
   name: Name
   phone_num: Phone_num
   company_name: Company_name
   address: Address
   email: Email
 
 
   cn/text: name show cn
   wp/text: phone_num show wp
   con/text: company_name show con
   sa/text: address show sa
   ea/text: email show ea
   
 
]        
         
   ]      
   ;clear data
   clear-form: does [
       
               
      clear cn/text
      clear wp/text      ;the value is integer cos it is    phone number
      clear con/text
      clear sa/text
      clear ea/text
      show [cn wp con sa ea]
         
     ]


the rest I can able to clear but when it reach the wp/text, it give me error:

Script Error: clear expected series argument of type: series port bitset none
** Where: clear-form
** Near: clear wp/text


Can anyone help me to solve the problem? Thank you
 
Logged
CarlRead
Full Member
***
Offline Offline

Posts: 105


View Profile
why can't I clear the text?
« Reply #1 on: April 15, 2004, 12:59:07 AM »

At a guess I'd say you should change the...

wp/text: phone_num show wp

to...

wp/text: to-string phone_num show wp

HTHs.
Logged

- Carl Read
Pages: [1] Print 
Rebol Talk Forum  |  Getting Started  |  Newbie Help  |  Topic: why can't I clear the text?
Jump to:  

  
Quick Search...

Advanced search
  
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 02, 2008, 06:53:03 AM
Username: Password: Session Length:
  

News: 01-09-08

Alpha version of REBOL 3 has been released!


  
2311 Posts in 595 Topics by 4139 Members
Latest Member: DietaVato

  Rebol Talk Forum | Powered by SMF 1.0.9.
© 2001-2005, Lewis Media. All Rights Reserved.

RT design by Defiant Pc