Sino po ba meron ditong sample code ng paggawa ng Bookstore sa java object oriented, yung may search,transaction,book titles, etc.. kung sino man meron pa share nmn gusto ko lang makta kung pano ginawa. netbeans po gamit ko.
Most of our features and services are available only to members, so we encourage you to login or register a new account. Registration is free, fast and simple. You only need to provide a valid email. Being a member you'll gain access to all member forums and features, post a message to ask question or provide answer, and share or find resources related to mobile phones, tablets, computers, game consoles, and multimedia.
All that and more, so what are you waiting for, click the register button and join us now! Ito ang website na ginawa ng pinoy para sa pinoy!
ah.. sige po... salamat sir..^^
ahm, tanung ko lang po, anu na po ba pinagkaiba ng visual basic 2008 sa vb.net..??
parang mas trending kasi yung vb.net, nakakaintriga lang po..XD
hahahaha..
anyways, salamat po ulit sir knives645, and specially sa thread na ito..^^
------------------------
by the way sir, panu po ba aayusin pag nakaencounter ka ng error about sa database,
di ko na po maalala yung error, pero alam ko po about sya sa same data na nilagay ko,
nagtry po kasi akong gumawa ng application na my ID, bale nung first na try ko, nagsave naman yung data,
nung second try ko naman na same parin yung ID na nilagay ko, yun po, nagkaerror na,
panu po ba yun.??
VB.net? Visual basic 2008?
Let me elaborate...
Microsoft release Visual Studio .Net, if I'm not mistaken that was 2002.
But prior to .Net merong visual studio 97 then visual studio 6.
Visual Studio is the IDE, same sa MS Office, it's a suite, it has Word, Excel, Powerpoint etc.
So sa Visual Studio, merong Windows Forms, WPF, SilverLight, ASP, etc.
Then meron kang languages na pwedeng gamitin like VB, C# and C++.
Yung 2002, 2003, 2005, 2008, 2010, 2012, 2013 and lastly yung 2014, versions lang yan ng Visual Studio.Net, parang android versions lang.
-from Sir Eric
Yung Visual Studio 6, includes VB6 is a WIN32 development tool
meaning ginagamit to create applications in the Windows32bit platform using native windows library.
VB.NET (VB2005 - VB2010) is a development tool to create applications running under the .NET Framework
So yung 2008 is version, while VB is the language.
With regards sa error mo,
Nag-declare ka ng Primary Key sa Table, so if you attempted to insert a duplicate ID, it will generate an error.
So you have to use Try/Catch to trap the error. Same to sa On Error Goto sa VB6.
wow,
so all in one na pala ang vb net,
may alam n dn ako s c pati c++,
kaya kaya ko cguro un..XD
install ko nalang agad sya pg nsa net ako maya.
salamat po sa info nyu.^^
ahm,
ung sa error ko naman po,
may gnwa po kc sya para maiwasan un eh,
ung parang pag may kaparehas na data dun field,
may lumalbs na msgbox tpos may nkalagay na "ID already exist"
bale,
un po ung gusto ko malaman, ung code po para, kung may kaparehas nga
na data sa field, mag la2bas nlang sya ng msgbox,
tpos ba2guhin nlang ng user ung nilagay nya,
nang ndi na nagdedebug,
Dim cmd As New OleDbCommand
cmd.CommandText = "SELECT count(*) FROM youTable WHERE ID = @ID"
cmd.Connection = conn
cmd.Parameters.AddWithValue("@ID", txtID.Text)
Dim oleRdr as new OleDbReader = cmd.ExecuteReader()
If oleRdr.HasRows = True Then
oleRdr.Read()
If oleRdr.Item(0) = 0 Then
'ID is available and you can do insert command now
Else
'ID exists, notify user for duplicate entry.
End If
End If
Sabi ko nga nung una, lagyan mo ng Try/Catch ang code mo.
Or retrieve mo muna sa table mo kung meron kapareho ang ID.
Sample code using OLEDB, I didn't test the code, pero ganyan ang concept.
Code:Dim cmd As New OleDbCommand cmd.CommandText = "SELECT count(*) FROM youTable WHERE ID = @ID" cmd.Connection = conn cmd.Parameters.AddWithValue("@ID", txtID.Text) Dim oleRdr as new OleDbReader = cmd.ExecuteReader() If oleRdr.HasRows = True Then oleRdr.Read() If oleRdr.Item(0) = 0 Then 'ID is available and you can do insert command now Else 'ID exists, notify user for duplicate entry. End If End If
yap.. chineck ko na po yung sa database ko, bale yung code nalang po yung di ko alam...^^
and,,, salamat po dito..
hahaha.. ahm,
parehas lang po ba sa adodb to sir knives.??
medyo new po kasi yung mga code dito, di po ko familiar,
pero, try ko na din po sa project ko..^^
salamat po dito sir knives and sa thread na to..^^
tamabay na ko dito.. hahaha..XD
View attachment 967296
wah..XD
may new error nanaman po ako.. sorry po sir knives ah, di ko po kasi naiaaply yung cnabi mo..
nagkaprob tuloy akoh..
panu po yung tamang coding nito..;(
sorry po tlga kung makulit akoh..
Yung NewStudentNumber mo ba, text or number?
Pa-try na lang pala na tanggalin ang space dun sa may [NewStudentNumber = ' " & txtStudentNunber.Text & " '"] ng SQL mo.
SELECT * FROM NewStudentList WHERE NewStudentNumber = '" & txtStudentNunber.Text & "'"
Thank you Sir Knives, What a useful site po , pati itong thread.Sa una lang yan, kahit ako, nung una nalito ako...
Pag lagi mo gamit, di naman siya mahirap intindihin...
Try mo nga pala ang mga sample sa thread na to..
http://www.symbianize.com/showthread.php?t=228735
- - - Updated - - -
Try nyo po dito..
http://www.homeandlearn.co.uk/java/java.html