By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,622 Members | 1,154 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,622 IT Pros & Developers. It's quick & easy.

hOW TO SELECT dbgrid

P: 2
Dear Friends,

I have two similar .dbf files(FOxPro 3.0)
1st one is filled "Trans.dbf" the next is a blank similar "current.dbf"
I have two DBGRIDS in the form.
I can see the contents of the Trans.dbf in the text boxes & on the DBGRID1 control.

What I need is ,If I click on a particular record on DBGRID1 it should get selected & must be transferred to DBGRID2 so that I can update the blank "Current.dbf" with the selected record from DBGRID1.
How is this possible?

Another query is if I need to convert String to Date how can it be done?

Rahul
Mar 27 '07 #1
Share this Question
Share on Google+
2 Replies


100+
P: 149
Dear Friends,

I have two similar .dbf files(FOxPro 3.0)
1st one is filled "Trans.dbf" the next is a blank similar "current.dbf"
I have two DBGRIDS in the form.
I can see the contents of the Trans.dbf in the text boxes & on the DBGRID1 control.

What I need is ,If I click on a particular record on DBGRID1 it should get selected & must be transferred to DBGRID2 so that I can update the blank "Current.dbf" with the selected record from DBGRID1.
How is this possible?

Another query is if I need to convert String to Date how can it be done?

Rahul
Hi ,
>>Another query is if I need to convert String to Date how can it be done?

You can use the DateValue function in VB.

Public Function DateValue(ByVal StringDate As String) As DateTime

Dim myDate As Date
myDate = DateValue("February 2, 1975")

thanks
ansuman sahu
Mar 27 '07 #2

P: 2
Hi ,
>>Another query is if I need to convert String to Date how can it be done?

You can use the DateValue function in VB.

Public Function DateValue(ByVal StringDate As String) As DateTime

Dim myDate As Date
myDate = DateValue("February 2, 1975")

thanks
ansuman sahu
Thank you Ansuman,

But I can not go ahead with date function until I get the 1st problem sorted out,
Can you help?
Rahul
Mar 27 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.