Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Sat Sep 22, 2018 2:30 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Create class methoed to return recordset
PostPosted: Mon Oct 17, 2005 2:00 am 
Offline

Joined: Mon Oct 17, 2005 1:55 am
Posts: 6
Location: Australia
hi i am a visualbasic programmer and i expected rb treat me as vb.but i couldn't find any way to create property that return recordset pls any one help me.thanks :oops:


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Oct 17, 2005 2:59 pm 
Offline

Joined: Sat Oct 01, 2005 5:19 pm
Posts: 3216
I don't know why you'd expect rb to be like vb, what would the point be of having rb if it was identical to vb?

Your question is rather vague, however if you are just returning a recordset from a Function, in the return window of the method type the word RecordSet. The 5 things in the dropdown (or however many there are) are just for quickies, you can put anything in the return type.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Oct 17, 2005 11:07 pm 
Offline

Joined: Mon Oct 17, 2005 1:55 am
Posts: 6
Location: Australia
thanks mate.
i didn't mean identical but flow.I found rb has good features like one file to execute(no other support file). so it is easy to distribute my software for others.I used rb 5.5(old version)in there i couldn't find that type of return type.anyway i will download new version and have alook.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Oct 17, 2005 11:19 pm 
Offline

Joined: Sat Oct 01, 2005 5:19 pm
Posts: 3216
I'm using 5.5 and I'm telling you whatever type you want to return you just enter it manually ... there are 5 "standards" there, but you can return any object.

Function Text(TempString as String) as RecordSet

Dim rs as RecordSet
rs = New Recordset

rs = dbFile.SQLSelect("Select * From Table_Name")

return rs

end Function


works just fine :)


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri Oct 21, 2005 8:37 pm 
Offline

Joined: Mon Oct 17, 2005 1:55 am
Posts: 6
Location: Australia
thanks man
it's work for me now as u said.thank you very much.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours


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

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group