Rebol Talk Forum  |  REBOL Discussions  |  REBOL Sand Box  |  RebDB  |  Topic: problem on deleting the record
Pages: [1] Print
Author Topic: problem on deleting the record  (Read 668 times)
sumyee
Guest


Email
problem on deleting the record
« on: March 28, 2004, 11:49:07 PM »

i wanted to delete the record but i can't.. if i hard coded the value, it can be deleted. if i assign it to a valuable, it cannot be delete.. why? can someone help me ps as i amnew to rebol.. thank you


REBOl[]

do %db.r

   
  db-select * person
            integer? del_integer: ask ["Enter ID value to delete:"]
           

         change_del_integer: to-integer del_integer
         print change_del_integer
         print type? change_del_integer        
                       
           

      db-delete/where * person [ ID = change_del_integer]
          ;db-close person
           ;db-select * person

 
Logged
Ashley
Newbie
*
Offline Offline

Posts: 37


View Profile
problem on deleting the record
« Reply #1 on: March 29, 2004, 12:46:05 AM »

This question probably belongs in the RebDB section of the forum, but the answer is to use compose as follows:
Code:
db-delete/where * person compose [ID = (change_del_integer)]
which will substitute the word in parenthesis (change_del_integer) with the value you entered.
Logged
Pages: [1] Print 
Rebol Talk Forum  |  REBOL Discussions  |  REBOL Sand Box  |  RebDB  |  Topic: problem on deleting the record
Jump to:  

  
Quick Search...

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

News: 01-09-08

Alpha version of REBOL 3 has been released!


  
2311 Posts in 595 Topics by 4140 Members
Latest Member: Houolid

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

RT design by Defiant Pc