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!

pahelp nmn po regarding sa CR 8.5 connected sa vb 6

kasi pag niloload ko yung form naghahanap siya ng ibang .dll tsaka .ocx files ung sa dll po nagawan ko na ng paraan pero yung sa .ocx hindi pa rin sana mahelp nyo po ako para mairun ko ng maayos ung program ko.. pano ko ba mareregister yung .ocx na file ng hnd na gumagamit ng installer

ganito po ginawa ko to register my OCX file:
1. lagay nyo yung YourOCX.ocx file mo sa system32 na folder.
2.run CMD as administrator then type "cd\" para maging C:\>
3.tsaka mo i type yung code below:

regsvr32 c:\windows\system32\YourOCX.ocx
4. hit Enter and your done.

registerrocx.jpg
 
help please !:yipee::help:
I'm creating a database application that uses a MS Access

Database, I'm using ADO to open the connection and Recordset.
If I have a Recordset Already Opened, What is the fastest or best best way to find a specific Record.


Example...

* If I wanted to search for a record the Matches these:

FirstName = Omar
AND
LastName = Swan
AND
Sex = Male


Thanks:salute:
 
try mo po e install ung bingay ko na sdk

pede mo sya e save sa dbase or image file...

may mga sample yan vb6, vb.net, c#, delphi saka cbuilder

May FoxPro ka poh buh? maskabisado ko po kc un hehe(>,<)
 
ganito po ginawa ko to register my OCX file:
1. lagay nyo yung YourOCX.ocx file mo sa system32 na folder.
2.run CMD as administrator then type "cd\" para maging C:\>
3.tsaka mo i type yung code below:

regsvr32 c:\windows\system32\YourOCX.ocx
4. hit Enter and your done.

registerrocx.jpg

bakit po ganun sa .dll ok po pero sa .ocx hindi po gumagana kht nasa system32 na siya andyan po yung error niya
 

Attachments

  • ocxerror.JPG
    ocxerror.JPG
    42.2 KB · Views: 4
guys pa help naman din po..bago lang po ako sa programming, at gusto ko rin matuto..

may ginagawa po akong program,sinusubukan ko lang po, pero may code po ako na di ko alam kung pano ung syntax..dun po sa listbox un, eto po SS nung gngwa ko, sana matulungan nyo ko:

632707-222201121745PM.jpg


ang gusto ko lang po malaman ay kung ano ung code na ilalagay ko sa listbox, di ko po kasi alam kung ano ung dapat ko gamitin na properties o method eh. may mga nababasa po ako, sabi ang kailangan ko daw gamitin ay "SelectedIndex" or "SelectedItem" or "SelectedItems" .. di ko po alam kung alin jan, at di ko rin po alam kung paano ung syntax nyan.. sigh.. please help naman po, kahit ung sa listbox lang, ako na po bahala sa ibang code na kailangan ko..

tsaka ano po ba kaibahan ng "SelectedItem" sa "SelectedItems"? para san po silang dalawa at kailan ko sila dapat gamitin?

THANKYOU po..
 
bakit po ganun sa .dll ok po pero sa .ocx hindi po gumagana kht nasa system32 na siya andyan po yung error niya



paps. pag nasa cmd kna, dapat run as admin ka.
nasa C: kana.


ito lang paps.

cd\ (hit enter)

regsvr32/yourOCX.ocx (hit enter)


ok na yan.
 
Last edited:
Private Sub login_Click()
If username.Text = "" And password.Text = "" Then
MsgBox "Please fill the required information"
username.Text = ""
password.Text = ""
Adodc1.Refresh
Else
Adodc1.RecordSource = " select * from login where username= '" & username.Text & "' and password = '" & password.Text & "'"
Adodc1.Refresh
If (Adodc1.Recordset.EOF = False) Then
If (password.Text = Adodc1.Recordset.Fields("password")) Then
main.Show
Unload Me
Else
MsgBox "Invalid Password"
username.Text = ""
password.Text = ""
username.SetFocus
End If
Else
MsgBox "Invalid Username"
username.Text = ""
password.Text = ""
username.SetFocus
End If
End If
End Sub




guys plz help nan po ohh
pakitignan nan po f tama codes ko
 
Private Sub login_Click()
If username.Text = "" And password.Text = "" Then
MsgBox "Please fill the required information"
username.Text = ""
password.Text = ""
Adodc1.Refresh
Else
Adodc1.RecordSource = " select * from login where username= '" & username.Text & "' and password = '" & password.Text & "'"
Adodc1.Refresh
If (Adodc1.Recordset.EOF = False) Then
If (password.Text = Adodc1.Recordset.Fields("password")) Then
main.Show
Unload Me
Else
MsgBox "Invalid Password"
username.Text = ""
password.Text = ""
username.SetFocus
End If
Else
MsgBox "Invalid Username"
username.Text = ""
password.Text = ""
username.SetFocus
End If
End If
End Sub




guys plz:pray: help nan po ohh :help:
pakitignan nan po f tama codes ko :(
 
Option Explicit
Dim arrX1(100) As Double
Dim arrX0(99) As Double
Dim arrSecantRootX(99) As Double
Public Function f(ByVal x As Double) As Double
If a.Text = "" Or b.Text = "" Or c.Text = "" Or d.Text = "" Or e1.Text = "" Or f1.Text = "" Or g.Text = "" Or h.Text = "" Or i1.Text = "" Or j.Text = "" Or k.Text = "" Or l.Text = "" Or m.Text = "" Or n1.Text = "" Or o.Text = "" Or sine.Text = "" Or cose.Text = "" Then
a.Text = 0
b.Text = 0
c.Text = 0
d.Text = 0
e1.Text = 0
f1.Text = 0
g.Text = 0
h.Text = 0
i1.Text = 0
j.Text = 0
k.Text = 0
l.Text = 0
m.Text = 0
n1.Text = 0
o.Text = 0
cose.Text = 0
sine.Text = 0
End If
f = (a.Text * x ^ 5) + (b.Text * x ^ 4) + (c.Text * x ^ 3) + (d.Text * x ^ 2) + (e1.Text * x) + f1.Text + (g.Text * (e ^ ((h.Text * x) + i1.Text))) + j.Text * (Cos(k.Text * x + l.Text)) ^ cose + m.Text * (Sin(n1.Text * x + o.Text)) ^ sine
End Function



Public Sub command1_click()
Dim X1 As Double
Dim X0 As Double
Dim fX0 As Double
Dim fX1 As Double
Dim secantrootx As Double
Dim n As Integer
Dim i As Integer

n = 0
X1 = int1.Text
X0 = int2.Text
arrX1(0) = X1
arrX0(0) = X0
arrSecantRootX(0) = secantrootx

Do
n = n + 1
If n = 0 Then
fX0 = f(X0)
Else
If n = 1 Then
fX1 = f(X1)
Else
secantrootx = X1 - ((fX1) * (X1 - X0) / (fX1 - fX0))
arrSecantRootX(n) = secantrootx
X0 = X1
arrX0(n) = X0
X1 = secantrootx
arrX1(n) = X1
Exit Do
End If
End If
Loop
For i = 0 To n
MsgBox (i & " " & arrSecantRootX(i) & "")
Next
End Sub


anu po yung error na "overflow" ? anu po pwede solution dun?:(
nag eerror po lage dahil dun sa part na yun..:(
 
anu po yung error na "overflow" ? anu po pwede solution dun?:(
nag eerror po lage dahil dun sa part na yun..:(

try mo simplify codes mo...
or try mo mag function call...

overflow ang error pag di na kaya ng object mo yung command na i nasign mo sa kanya...
 
Private Sub login_Click()
If username.Text = "" And password.Text = "" Then
MsgBox "Please fill the required information"
username.Text = ""
password.Text = ""
Adodc1.Refresh
Else
Adodc1.RecordSource = " select * from login where username= '" & username.Text & "' and password = '" & password.Text & "'"
Adodc1.Refresh
If (Adodc1.Recordset.EOF = False) Then
If (password.Text = Adodc1.Recordset.Fields("password")) Then
main.Show
Unload Me
Else
MsgBox "Invalid Password"
username.Text = ""
password.Text = ""
username.SetFocus
End If
Else
MsgBox "Invalid Username"
username.Text = ""
password.Text = ""
username.SetFocus
End If
End If
End Sub





guys plz:pray: help nan po ohh :help:
pakitignan nan po f tama codes ko :(

alisin mo na yung and password = '" & password.Text & "' na code.

ganito lang dapat sya:
Adodc1.RecordSource = " select * from login where username= '" & username.Text & "' "
 
ang haba ng code mo...

papano ba kunin ang largest number? greater than all other numbers diba

x>n1 and x>n2 and x>n3 and..........

try mo maglagay ng AND sa condition mo para minsanan ang evaluation
if not, nested IF ang lalabas nyan

itong code na to gets the largest number
ikaw na bahala how to get the smallest number, baliktarin mo nalang yung conditions

Code:
Dim a As Integer
    Dim b As Integer
    Dim c As Integer
    
    a = 3
    b = 5
    c = 9
    
    If a > b And a > c Then
        MsgBox a
    ElseIf b > a And b > c Then
        MsgBox b
    ElseIf c > a And c > b Then
        MsgBox c
    End If

thanks po dito..pano po ba pag smallest? please i need help
 
paps. pag nasa cmd kna, dapat run as admin ka.
nasa C: kana.


ito lang paps.

cd\ (hit enter)

regsvr32/yourOCX.ocx (hit enter)


ok na yan.

same lang din po yung administrator account tsaka run as admin db po??
ganun pa rin yung error niya.. specified module could not be found
yung isang .ocx nagsucceed naman po
 
Last edited:
try mo simplify codes mo...
or try mo mag function call...

overflow ang error pag di na kaya ng object mo yung command na i nasign mo sa kanya...

Sir genrax i've tried to simplify the codes.. pero ganun padin po.. dun padin sa part na yun yung error..

panu po ba mag call ng function...?
 
Sir genrax i've tried to simplify the codes.. pero ganun padin po.. dun padin sa part na yun yung error..

panu po ba mag call ng function...?

Function Call?
dito..
http://visualbasic.freetutes.com/learn-vb6/lesson2.2.html
http://en.wikiversity.org/wiki/Functions_and_Subroutines_in_VB6
http://www.vb6.us/tutorials/understanding-subroutines-and-functions-vb

Gamit ka nang Breakpoint, para makita mo ang value nang computation mo..
or
Insert mo to.. before the line where the error occured
Debug.Print (X1 - ((fX1) * (X1 - X0) / (fX1 - fX0)))

Tapos, check mo sa immediate (Ctrl-G), kung anong lumitaw na
value sa computation..
 
Function Call?
dito..
http://visualbasic.freetutes.com/learn-vb6/lesson2.2.html
http://en.wikiversity.org/wiki/Functions_and_Subroutines_in_VB6
http://www.vb6.us/tutorials/understanding-subroutines-and-functions-vb

Gamit ka nang Breakpoint, para makita mo ang value nang computation mo..
or
Insert mo to.. before the line where the error occured
Debug.Print (X1 - ((fX1) * (X1 - X0) / (fX1 - fX0)))

Tapos, check mo sa immediate (Ctrl-G), kung anong lumitaw na
value sa computation..



ayun di na po sya nagooverflow..
kaso po ayaw na tumuloy tuloy... try ko po ayusin ulit yung gawa ko... ang hirap pala nito..:(
 
may payroll system ka ba bro? ung may bundy clck na.. pang base lang..thank u!
 
Back
Top Bottom