Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
killunix
Beginner


Joined: 18 Nov 2007
Posts: 28

PostPosted: Sun Oct 25, 2009 4:59 am   

Database access question
 
hi,all.
I use the followling code access the MS acees database:
Quote:
#VAR Conn %comcreate("ADODB.Connection")
#CALL @Conn.Open("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\CMUDPro\forex\poem.mdb")
#VARIABLE rs @Conn.Execute( %concat( "SELECT poem FROM poem WHERE poem LIKE '%", @word1, "%' and poem LIKE '%", @word2, "%' and poem LIKE'%", @word3, "%' and poem LIKE '%", @word4, "%'"))
#ECHO The right answer is: @rs.GetString

It works correct.
But i need i can use the recoder to do other thing such as use :
Code:
 aa=%len(@rs.GetString)

the cmud tell me "either bof or eof is true or the current record has been deleted"
How can i resove this question?
Thank you very much
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net