Rebol Talk Forum  |  Getting Started  |  Newbie Help  |  Topic: How to solve this problem?
Pages: [1] Print
Author Topic: How to solve this problem?  (Read 508 times)
newbie
Guest


Email
How to solve this problem?
« on: April 15, 2004, 01:15:03 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 value1 into the foreach functions  Thank you..  
Logged
Ashley
Newbie
*
Offline Offline

Posts: 37


View Profile
How to solve this problem?
« Reply #1 on: April 20, 2004, 07:23:58 PM »

You need to use 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: How to solve this problem?
Jump to:  

  
Quick Search...

Advanced search
  
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 02, 2008, 07:01:18 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