kharl m
i need help how to write a computer code. for example suppose a paragraph is written in one text box and you want to change certain words if they appear and change the word into another word and leave the other words as it is. for example so far i only know how to do it with one word.
if textbox1.text="child" then
textbox2.text="word"
please give specific info as im new to programming
Answer
You're looking for the Replace function:
http://msdn.microsoft.com/en-us/library/bt3szac5(VS.80).aspx
For example, to do the above, you'd write:
textbox1.text = Replace(textbox1.text,"child","word")
And that will replace every occurrence.
You're looking for the Replace function:
http://msdn.microsoft.com/en-us/library/bt3szac5(VS.80).aspx
For example, to do the above, you'd write:
textbox1.text = Replace(textbox1.text,"child","word")
And that will replace every occurrence.
Visual Basic help (need help with a computer project)?
Ibrahim
ok so our computer teacher is stupid and he wants us to do a project about " database programming in visual basic" i know how to do a few things in VB but i dont know what the hell what the project about so if you explain what this about i would be super gratefull also if you know a couple of usefull i could take info from that would be great
Answer
ok database is place for storing records
each record might have many values
eg email users when v sign up v give a lot of info
its usually stored as record in database
eg
uid uname password ...............
1 u 1234
2 me 5678
each user is a record here
so in VB u r expected 2 connect 2 a database and then retrieve each record value
since u already know VB i suggest u learn connecting 2 database from sites like
http://www.kdkeys.net/forums/thread/868.aspx
whats given is the code u can put the code so that its executed when u click button or when a form loads
i am not going in depth into this coz its a pretty vast subject but searching shud help a lot
ok database is place for storing records
each record might have many values
eg email users when v sign up v give a lot of info
its usually stored as record in database
eg
uid uname password ...............
1 u 1234
2 me 5678
each user is a record here
so in VB u r expected 2 connect 2 a database and then retrieve each record value
since u already know VB i suggest u learn connecting 2 database from sites like
http://www.kdkeys.net/forums/thread/868.aspx
whats given is the code u can put the code so that its executed when u click button or when a form loads
i am not going in depth into this coz its a pretty vast subject but searching shud help a lot
Powered by Yahoo! Answers






Comments :
Post a Comment