Jump to content
  • Recently Browsing

    • No registered users viewing this page.

Recommended Posts

  • 3 weeks later...

I like VB. I hate VB.NET

 

Im a solid MSACCESS/VB programmer before. Didnt even know codes puro macros gamit ko. I saw the VB codes generated by those Macros and I knew VB was good and easy to use.

 

Then I ventured into .NET due to job requirements. .NET in general has more tools and control over the data, where you have to create those datasets dynamically in VB, you can use datasets from ADO objects in .NET.

 

I guess brod you just need to see some sample codes on how VB code can be converted to .NET, im sure youll love .NET na.

 

isipin mo 200 lines ng VB code to run database code, kaya nang .NET sa 10 lines.

Link to comment
  • 1 month later...
  • 2 weeks later...

Mga Masters,

 

Pwede nyo ba ako tulungan i-convert itong code from VB6 to VB.NET (2010 Express)? I developed kasi a program for private schools at gusto ko i-upgrade ang code to .Net pero I am having problem sa coding ng ADO to ADO.net

 

Here is the code I use:

 

Public Conn As New ADODB.Connection

Public Rs As ADODB.Recordset

Public Fld As ADODB.Field

Public ConnString

Dim Arr_Enrollees()

Dim Ctr

 

 

Private Sub Form_Load()

ConnString = "DRIVER={MySQL ODBC 3.51 Driver};SERVER=localhost;DATABASE=littleangel_db;UID=pss;PWD=pss;OPTION=3;"

Set Conn = New ADODB.Connection

Conn.ConnectionString = ConnString

Conn.Open

Set Rs = New ADODB.Recordset

Rs.CursorLocation = adUseServer

 

with Rs

Ctr=0

.open "select count(*) from file_enrollees", Conn

redim Arr_Enrollees(.fields("count(*)"), 2)

.close

.open "select * from file_enrollees", Conn

if not .eof then

.movefirst

Ctr=0

do while not .eof

Arr_Enrollees(Ctr, 0) = .fields("enrollees_fname")

Arr_Enrollees(Ctr, 1) = .fields("enrollees_lname")

.movenext

Ctr= Ctr + 1

loop

end if

.close

 

.open "select * from file_enrollees", Conn, adOpenStatic, adLockOptimistic

.addnew

!enrollees_fname = "Juan"

!enrollees_lname = "Calintong"

.update

.close

end with

End Sub

 

 

Sana merong makatulong maka-explain ng simple kung paano ma-convert itong example to VB.Net / ADO.Net

 

Thanks in advance

 

BTW. MySQL pala gamit ko

 

May pangconvert ang vb.net. No need to revised the codes. Pm me if you need help.

Link to comment

Dahil sa gumagamit ka ng ibang database (MySQL) kailangan mong idownload yung driver nya (Go to MySQL website for the free downloads)

Then major revision yan almost everything sa code mo.

 

 

imports System.Data.MySQLClient

 

public class SomeMethod

Dim conn as new MySQLConnection("connection string here")

Dim dt as new DataTable

Dim da as MySQLDataAdapter

 

conn.open

 

da = new sqlDataAdapter("SQL Synatx here")

da.fill(dt)

 

dim ctr as integer

For Each dr As DataRow in dt.Rows

Arr_Enrollees(ctr,0) = dr.item("Field_Name").toString()

Arr_Enrollees(ctr,1) = dr.item("Field_Name").toString()

Next

 

 

End Class

 

pag nagaadd ka naman kailangan mong gumamit ng sqlCommand tapos

SQL DML statements INSERT INTO Table

Yun lang

Link to comment

mga sir.. im a com sci graduate unfortunately was not able to venture into the programming world, now i wanna go back to being a programmer, ano maadvise nyong pagaralan or ireview kong programming language na in demand ngyon.. im thinking of at least 3-5 languages.. ano po massuggest nyo and if may mapprovide po kayong link kung san pwde makakuha ng e-book or tutorial videos..

 

pati na rin po pala kung san pwde makakuha ng installer..

 

maraming maraming salamat po, sorry if medyo madami akong hinihingi,...kahit alin lang po jan ang masagot nyo.. i'll appreciate it.. thanks..

Link to comment

mga sir.. im a com sci graduate unfortunately was not able to venture into the programming world, now i wanna go back to being a programmer, ano maadvise nyong pagaralan or ireview kong programming language na in demand ngyon.. im thinking of at least 3-5 languages.. ano po massuggest nyo and if may mapprovide po kayong link kung san pwde makakuha ng e-book or tutorial videos..

 

pati na rin po pala kung san pwde makakuha ng installer..

 

maraming maraming salamat po, sorry if medyo madami akong hinihingi,...kahit alin lang po jan ang masagot nyo.. i'll appreciate it.. thanks..

 

 

I think it is best na balikan mo ung language na gamay ka then saka ka mag aral ng new language.

 

Sa mga languages naman, "in the philippines" eto ang mga in demand AFAIK.

 

1.) Mainframe (Cobol, ASPXXXX, RPG)

2.) Java

3.) Oracle

4.) SAP

5.) VB.NET

 

Ung "Game Programming" available narin satin. Ang alam ko sa subic ang office nila, C# and C++ ang common. Meron din demand sa iOS (IPAD, Iphone) platform.

 

For softwares and tutorials search ka na lng sa torrent.

 

Good luck sa pag balik mo sa gusto mong career. Di tulad ko na COE graduate na napunta sa programming. :(

Link to comment

I think it is best na balikan mo ung language na gamay ka then saka ka mag aral ng new language.

 

Sa mga languages naman, "in the philippines" eto ang mga in demand AFAIK.

 

1.) Mainframe (Cobol, ASPXXXX, RPG)

2.) Java

3.) Oracle

4.) SAP

5.) VB.NET

 

Ung "Game Programming" available narin satin. Ang alam ko sa subic ang office nila, C# and C++ ang common. Meron din demand sa iOS (IPAD, Iphone) platform.

 

For softwares and tutorials search ka na lng sa torrent.

 

Good luck sa pag balik mo sa gusto mong career. Di tulad ko na COE graduate na napunta sa programming. :(

 

Thanks ng madami.. nagapply kasi ako dati sa Accenture as Software Engineer after grad eh atat ako magkatrabaho agad, at hindi na nahintay ang Accenture, napunta tuloy ako sa CallCenter, although IT Field pa din nman ang hawak ko, medyo nagssawa nako.. so try ko bumalik.. hehehe..

 

As for the PL that im used to, gamay ko ang Visual Basic 6.. so i think ill start off with VB.net..

 

thanks again.. :)

Link to comment
  • 2 weeks later...

Thanks ng madami.. nagapply kasi ako dati sa Accenture as Software Engineer after grad eh atat ako magkatrabaho agad, at hindi na nahintay ang Accenture, napunta tuloy ako sa CallCenter, although IT Field pa din nman ang hawak ko, medyo nagssawa nako.. so try ko bumalik.. hehehe..

 

As for the PL that im used to, gamay ko ang Visual Basic 6.. so i think ill start off with VB.net..

 

thanks again.. :)

 

Sana hinintay mo na lng ung sa Accenture. Para sakin "SAYANG".

Link to comment
  • 1 year later...

Hi guys, I'm looking for a programmer who can create an off-line database for me. The idea is, I need a program (installable to any pc) to do quizes or exams for our sales team in the field. There will be databank of questions and then randomly, 20 questions will pop-up (by 1's) in a window. The sales person will now take the exam (multiple choice or essay) in a time pressured manner. Each question will be shown for two minutes only then will go to another question in the same window. All data like scores and where the sales person got the wrong answer will now be synched to an admin (back-end in the office). I can explain the full details of the requirement in person or via cellphone. Should anyone be interested, please call me at 0917-5073692. This is Jon. Thanks.

Link to comment
  • 2 months later...

Hi guys, I'm looking for a programmer who can create an off-line database for me. The idea is, I need a program (installable to any pc) to do quizes or exams for our sales team in the field. There will be databank of questions and then randomly, 20 questions will pop-up (by 1's) in a window. The sales person will now take the exam (multiple choice or essay) in a time pressured manner. Each question will be shown for two minutes only then will go to another question in the same window. All data like scores and where the sales person got the wrong answer will now be synched to an admin (back-end in the office). I can explain the full details of the requirement in person or via cellphone. Should anyone be interested, please call me at 0917-5073692. This is Jon. Thanks.

 

May I know your ETC for this? Saka ko na alamin details kung swak pa sa sched ko.

Link to comment
  • 3 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...