SubString

yud

New member
Joined
Feb 15, 2007
Messages
3
Programming Experience
Beginner
hi, I'm yudhis. I need help from you all.
my problem are :
"there is a datagrid1, textbox1, textbox2, button1, button2, button3. when the form run, datagrid1 had showed information [for example table income with 3attribute kode char(10), keterangan char(15) and nilai numeric(6.4)] and it showed like this

"pend200205 ; May ; 49.2657"
pend--> Identity of table
2002--> year
05--> month

my questions are:
1. Would you like to help me if "pend200205" and I just want to take "2002" from button1.click and it show in textbox1. How I get it ? I don't know the coding that I must create
2. Would you like to help me if "pend200205" and I just want to take "05" from button2.click and it show in textbox2. How I get it? I don't know the coding that I must create too
3. Could vb.net link to FoxPro? if I click button3 and it show FoxPro application (like general vb.net but can link to PoxPro)? if it could, would you like to help me solve this problem?

I hope you all can help me about above problems. I need you help so much and thank you very much for the attendtion. :)
 
I need help from you all.
Are you sure? Currently, this forum has 12,032 members..

"pend200205 ; May ; 49.2657"


my questions are:
1. Would you like to help me if "pend200205" and I just want to take "2002" from button1.click and it show in textbox1. How I get it ? I don't know the coding that I must create
Yes.

Using string.SubString(int offset, int length), remembering that strings start at 0, 2002 is found at offset 4, and has a length of 4

textbox.Text = "something" can be used to set the contents of a textbox to "something"

2. Would you like to help me if "pend200205" and I just want to take "05" from button2.click and it show in textbox2. How I get it? I don't know the coding that I must create too
Yes.

See above

3. Could vb.net link to FoxPro? if I click button3 and it show FoxPro application (like general vb.net but can link to PoxPro)? if it could, would you like to help me solve this problem?

yes: OLE can read foxpro databases and all XP computers have OLE drivers
no: i have no experience of this. try a google search

I hope you all can help me about above problems. I need you help so much and thank you very much for the attendtion. :)
Weclome
 
Back
Top