-
November 29th, 2007, 12:25 AM
#1
Creating Website using VB 6.0
hi all..
i'm newbie in VB 6. can i know, can we creating a website using vb 6?? if yes, can i know the way how to do it??
thanks..
-
November 29th, 2007, 02:00 AM
#2
Re: Creating Website using VB 6.0
Not really, I'd say. Download Expressions Web (90 day trial) or any one of the other packages that claim to write html for you. Some people use Notepad though, and claim it's better.
-
November 29th, 2007, 02:11 AM
#3
Re: Creating Website using VB 6.0
what do you mean.. i dont understand.. can someone give some advice
Last edited by areon25; November 29th, 2007 at 02:15 AM.
-
November 29th, 2007, 02:23 AM
#4
Re: Creating Website using VB 6.0
You can write a web page, with anything. Not a web server, or a network.
Here is html code.
Code:
<head>
</head>
<body>
HELLO WORLD!
</body>
</html>
-
November 29th, 2007, 03:27 AM
#5
Re: Creating Website using VB 6.0
where actually we should write the HTML code?? in notepad or VB 6??
if we write the HTML code in notepad, what is the relation between notepad and VB 6 ??
Could someone give advise..
thank you..
-
November 29th, 2007, 04:46 AM
#6
Re: Creating Website using VB 6.0
Originally Posted by areon25
where actually we should write the HTML code?? in notepad or VB 6??
if we write the HTML code in notepad, what is the relation between notepad and VB 6 ??
Could someone give advise..
thank you..
If you want to develop in VB then you can start with 'DHTML Application' that comes with VB.
If you want to develop it in Javascript and VBScript then you can use notepad and for server side application ASP. Frontpage is another tool available for your which will generate HTML code automatically. Dreamviewer is there.
Now choice is your !!
-
November 29th, 2007, 07:14 AM
#7
Re: Creating Website using VB 6.0
Why not try out Microsoft Visual Web Developer?
The Express Edition can be downloaded for free. It seems a good choice.
Why should I try to write HTML code with VB?
-
November 29th, 2007, 07:20 AM
#8
Re: Creating Website using VB 6.0
i actuay want to make a website using vb 6. now i understand a bit. so we can create a website with using HTML code by "DHTML application". can someone please advise me how to start with simple programme using "DHTML Application"??
can i know, what type of server that suitable for vb 6??
thank u very much
-
November 29th, 2007, 07:33 AM
#9
Re: Creating Website using VB 6.0
actually i'm doing a system (website) that consist a database and the this system is connected to hardware(RFID) using serial communication. I'm using Visual Basic 6 because i know how to connect VB to RFID and database. the problem is, how to create a website using vb 6 and how to include all these(database, RFID, and website) in one system??
can someone give advise..
thank u very much..
-
November 29th, 2007, 07:45 AM
#10
Re: Creating Website using VB 6.0
Maybe an Active Server Page (ASP) is a suitable solution.
Please look it up at MSDN. There should be lot of information about that.
-
November 29th, 2007, 11:05 AM
#11
Re: Creating Website using VB 6.0
can someone check the code for me. it's about VB communication..
i want to check weather RFID reader detect RFID tag.. but nothing happen..
can someone give some advice...
thanks..
Private Sub Form_Load()
Dim dataID As Long
Dim data As String
'Text1.Text = ""
dataID = "000386090601"
If MSComm1.PortOpen = False Then MSComm1.PortOpen = True
End Sub
Private Sub MSComm1_OnComm()
If MSComm1.CommEvent = comEvReceive Then
data = MSComm1.input
If data = dataID Then
Text1.Text = dataID
Else
Text1.Text = ""
End If
End If
End Sub
-
November 29th, 2007, 11:42 AM
#12
Re: Creating Website using VB 6.0
Please use code tags around your code for better readability.
Your OnComm() handler is no good.
Code:
Private Sub MSComm1_OnComm()
If MSComm1.CommEvent = comEvReceive Then
data = MSComm1.input
If data = dataID Then
Text1.Text = dataID
Else
Text1.Text = ""
End If
End If
End Sub
Nothing happens because after receiving one character you compare it to the full ID and because this will never turn out true Text1.Text will always be empty.
You have to understand that the OnComm() event is called for every character received (when RThreshold is 1).
You have to determine when the apropriate number of characters is received.
Try this:
Code:
Dim Rec as String
dim dataID as String 'not as Long
...
' in Form_Load() for instance
dataID = "000386090601"
...
Private Sub MSComm1_OnComm()
If MSComm1.CommEvent = comEvReceive Then
Rec = Rec + MSComm1.Input
Text1.Text=Rec
if Len(Rec) = Len(dataID) Then
If Rec = data ID Then beep
End If
End If
End Sub
and see what happens.
I dont know what your reader sends out to indicate the end of the number and how all the other protocol is happening.
Usually you send a command to the reader before it will do anything at all. You cannot simply connect and wait if anything is going to happen.
If it does, by holding a tag to the reader, then you will see whatever comes from the reader, if you use the above code.
Last edited by WoF; November 29th, 2007 at 11:46 AM.
-
December 1st, 2007, 07:33 AM
#13
Re: Creating Website using VB 6.0
hi all..
thanks for the code.. i've already try the code and it's work.. but from that code i've overcome some problems.
1) i've modified the code as below
Dim Rec As String
'Dim Rec1 As String
Dim dataID As String 'not as Long
Private Sub Command1_Click()
'MSComm1.PortOpen = False
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
'Rec = 0
End Sub
Private Sub Form_Load()
If MSComm1.PortOpen = False Then MSComm1.PortOpen = True
End Sub
Private Sub MSComm1_OnComm()
'Rec = 0
If MSComm1.CommEvent = comEvReceive Then
Rec = Rec + MSComm1.Input
Text1.Text = Rec
'If Len(Rec) = Len(dataID) Then
'If Rec = dataID Then Beep
If Rec = "0003890601" Then
Text2.Text = "RapidKL"
Text3.Text = "T231"
Else
If Rec = "0004101893" Then
Text2.Text = "RapidKL"
Text3.Text = "T201"
Else
If Rec = "0004110179" Then
Text2.Text = "Metrobus"
Text3.Text = "91"
End If
End If
End If
End If
End Sub
i've added a button to clear the data(text1, text2 and text3). the problem is the programme cannot received next data after press the button..
2) using the some code as above, how to store the data(text1, text2 and text3) into the database after the reader received the ID. the database i'm using is microsoft Access
3) how to store the current time into database?
4) how to link a same database from 1 form to another form?
hope someone will give some advise..
thanks..
-
December 1st, 2007, 05:51 PM
#14
Re: Creating Website using VB 6.0
hi all..
does someone have any solution for my problems.. hope please someone give some advice...
thanks..
-
December 1st, 2007, 08:51 PM
#15
Re: Creating Website using VB 6.0
Can't even read your code. Use code tags. type ]code[ code goes here ]/code[ but reverse the brackets
Hint: Edit your last post.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|