Symbianize Forum

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!

Exclusively for Visual Basic 6.0 Programmers Only!

mga paps.. any idea for police promotion decision support need lng for thesis . hope you can help me ... sabi kse ng police samin the best way para mka pag decide ang system for the qualified police is the system needs atleast 3 case para m lagay sa qualified list ung police.. help please:weep:

kailangan mo ng records sa bawat police para madaling ma.identify. gamit ka ng database. save mo dun yung information. gamit ka ng if else statement o kaya naman case statement.
 
Anyone who can help me? :)

Meron po ba kayong Solution to Prevent Crashing po ung application ng vb6?

kapag po kasi after nung code ko nato:

"If KeyAscii = 13 Then Call cmdOk_Click"

nag ccrash po ung ginawa ko.

.Salamat po
 
Anyone who can help me? :)

Meron po ba kayong Solution to Prevent Crashing po ung application ng vb6?

kapag po kasi after nung code ko nato:

"If KeyAscii = 13 Then Call cmdOk_Click"

nag ccrash po ung ginawa ko.

.Salamat po

ano ang mo na nasa code sa cmdOk_Click?
 
Anyone who can help me? :)

Meron po ba kayong Solution to Prevent Crashing po ung application ng vb6?

kapag po kasi after nung code ko nato:

"If KeyAscii = 13 Then Call cmdOk_Click"

nag ccrash po ung ginawa ko.

.Salamat po


ano ang code sa command button na ito? post the code po para ma-debug po natin.
 
Private Sub cmdOk_Click()

If txtusername.Text = vbNullString Or txtpassword.Text = vbNullString Then
MsgBox "Unidentified user", vbExclamation, "Message Prompt"
txtusername.SetFocus
End If


Dim strSQL As String

strSQL = "SELECT * FROM tbluser WHERE Username LIKE '" & txtusername.Text & "' AND Password LIKE '" & txtpassword.Text & "'"
RST.Open strSQL, con, adOpenForwardOnly, adLockOptimistic

If RST.EOF = False Then
ActiveUserID = RST!ID 'ActiveUserID ay variable same po sa
ActiveUsername = RST!UserName 'ActiveUsername, ActivePassword, ActiveUsertype
ActivePassword = RST!Password 'Variable lang po yan.
ActiveUserType = RST!Access
Unload Me
MDIMain.Show
Else
MsgBox "You have entered Invalid Username or Password.", vbCritical, "Invalid Entry"
If MsgBox("Do you want to try again ?", vbQuestion + vbYesNo, "Invalid Entry") = vbYes Then
txtusername.Text = ""
txtpassword.Text = ""
txtusername.SetFocus
Else
Call cmdCancel_Click 'Dito nilagay ko lang con.Close , set con = nothing , End
End If
Set RST = Nothing
End If

End Sub

ITO lang po tapos pag katapos kong pindutin ung ENter mag cclose napo ung application.
Thank you po :)
 

Attachments

  • error.JPG
    error.JPG
    48.4 KB · Views: 11
Last edited:
Anyone who can help me? :)

Meron po ba kayong Solution to Prevent Crashing po ung application ng vb6?

kapag po kasi after nung code ko nato:

"If KeyAscii = 13 Then Call cmdOk_Click"

nag ccrash po ung ginawa ko.

.Salamat po

wala ako vb6 eh

textbox_keypress parang ganyan

Private Sub txtpassword_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then

cmdlogin_Click

End If

end sub
 
wala ako vb6 eh

textbox_keypress parang ganyan

Private Sub txtpassword_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then

cmdlogin_Click

End If

end sub

Opo ganito po ung akin tapos un po ung nasa loob ng cmdok_click yung nasa taas tapos po na code na pinost ko, then mag ccrash na po ung system mag cclose po siya mag isa.


Private Sub txtpassword_KeyPress(KeyAscii As Integer)

If KeyAscii = 13 Then Call cmdOk_Click

End Sub

Private Sub txtusername_KeyPress(KeyAscii As Integer)

If KeyAscii = 13 Then Call cmdOk_Click

End Sub
 
Last edited:
Opo ganito po ung akin tapos un po ung nasa loob ng cmdok_click yung nasa taas tapos po na code na pinost ko, then mag ccrash na po ung system mag cclose po siya mag isa.


Private Sub txtpassword_KeyPress(KeyAscii As Integer)

If KeyAscii = 13 Then Call cmdOk_Click

End Sub

Private Sub txtusername_KeyPress(KeyAscii As Integer)

If KeyAscii = 13 Then Call cmdOk_Click

End Sub

gumagamit kaba ng ocx? ano ang codes ng cmdok mo? try mo nga lagyan muna ng messagebox. comment m muna yung mga dating codes tignan mo kung mag crash
 
gumagamit kaba ng ocx? ano ang codes ng cmdok mo? try mo nga lagyan muna ng messagebox. comment m muna yung mga dating codes tignan mo kung mag crash

opo gumamit po ako ng mga ocx, may side effect po ba un? :)
nandyan po ung code ko sa page 1022 bago po ung reply niyo sa post ko. nandyan po ung code ng cmdok_click() ko po.

Sge po try ko ung sinabi niyo. Salamat.
 
Minsan normal lang na magcrash ang VB6. Tama ang ka.TS natin. isaisahin mo muna ang code para ma.identify mo agad kung saang parte ng code ang dahilan ng pag.crash ng program mo.
 
pwde po pa help naman in coming fourth year na ako ngaun any source po kung san pwede kumuha ng system? thanks
 
maraming 22long dito bro...kung may problem ka sa vb6...maraming master dito..like sir eric..
meron ba ts dito na pwedeng makachat para maturuan akong mabuti xD newbie pa kasi ako sa VB ee. may pinapagawa sa akin mukhang hindi ko kayang gawin.
 
may installer ba kayo nito? ung licence? ung sa akin kasi ayaw ung ibang tools :upset:
 
Back
Top Bottom