Rebol Talk Forum  |  Getting Started  |  Newbie Help  |  Topic: need help???
Pages: [1] Print
Author Topic: need help???  (Read 479 times)
newbie
Guest


Email
need help???
« on: April 13, 2004, 02:53:30 AM »

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

  button "View" [val]  

                       
]
       
val: does[
  value: reduce (t/picked)
  value1: to-string value
   print value1
 

  foreach [Name Phone_num] db-select/where [Name Phone_num] tblcontact [ Name = (value1)] [
   name: [Name]
   phone_num: [Phone_num]

  print name
  print phone_num
]        
         
   ]


I have met some problem as I unable to display the result. Why can't I pass in the value into the foreach functions Sad     Thank you..
Logged
Ashley
Newbie
*
Offline Offline

Posts: 37


View Profile
need help???
« Reply #1 on: April 20, 2004, 07:19:50 PM »

Quote
foreach [Name Phone_num] db-select/where [Name Phone_num] tblcontact [ Name = (value1)] [
Try adding compose:
Code:
foreach [Name Phone_num] db-select/where [Name Phone_num] tblcontact compose [Name = (value1)] [
Logged
Pages: [1] Print 
Rebol Talk Forum  |  Getting Started  |  Newbie Help  |  Topic: need help???
Jump to:  

  
Quick Search...

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

News: 01-09-08

Alpha version of REBOL 3 has been released!


  
2311 Posts in 595 Topics by 4145 Members
Latest Member: Domiadito

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

RT design by Defiant Pc