View Full Version : Beginner Coding
Realged13
07-10-2002, 11:23 PM
Just need some help with beginning of Vb 6. I downloaded and just need help getting started. I know stove is a big help but still would still like some other info about how it works.
TreyR
07-11-2002, 01:57 AM
Hey im me treyr28150 on ym
Realged13
07-11-2002, 12:46 PM
SO you know something about Vb?
Realged13
07-11-2002, 12:48 PM
If you still have it I would just delete it I don't know of anyone who even uses it anymore
Realged13
07-13-2002, 04:10 PM
Can someone post the packet sniffer ethreal cause when I went to the site to download it I downloaded it but never could get it open,
Topgun
07-24-2002, 12:46 PM
Can anyone tell me how to save text from a text box?
you mean save text from a text box as a variable or as a file?
trips
07-25-2002, 12:36 AM
dim stupidtext as string
stupidtext = text1.text
open "c:/location/stupidfile.txt" for append as 1
append #1 stupidtext
use in a loop think thats right miss my editor lol
oh yeah this shows as variable and file dont forget the close #1 at end of code cant rember if you need the # BEFORE THE 1 I stoped codeing so long ago i only do it when i got enough free time
does anyone know an easier way to convert java classes into vb code than learning java?
Mark__C
08-24-2002, 02:31 AM
Andy dude... You found those classes pretty easily... wouldn't you need some knowledge of java to find them?
well no.. i started by looking for what you told me... i know what it would looks like in vb so i tryed to look for the same thing. then there was a list at the top that said "referenced classes" and i went through those until i found the ones i need. it was mostly common sence. but i guess i'm gonna have to learn java for this project...
hehe, im new in VB...probably way newer than you guys. I don't know how to do anything really :( i know how to make things happen but nothing cool yet.
diffusion_core
09-13-2002, 02:22 PM
I need some help with my program, i'm trying to make an away status changer with winsock, having trouble on the packet end of it tho, any suggestions?
program is available at www.dalsauga.com
nice page, dont know much about changing status on ym tho
hmm...can someone teach me how to make a program that would convert minutes to seconds ???
or just give me the code so i can use it. cuz i really need one and i cant d'l anything, but i can just make one in VB if i had the code...
Mark__C
09-19-2002, 08:10 PM
You mean like minutes * 60 = seconds??
uhh i guess....
what code would i use?
would it be simple?
or a lot?
Mark__C
09-20-2002, 12:37 AM
Public Function MintoSec(ByRef Minutes as Long) As Long
Dim LngSec as Long
LngSec = (Minutes * 60)
MintoSec = LngSec
End Function
yep thats pretty much covers it
lol i dont understand any of the code you guys use!!
to do minutes to seconds, i just used
lblAnswer.Caption = txtMinutes.Text * 60
in my command button. it worked...i dunno why i dont understand a single bit of the code you just put?? hmm
he just wrote a function that will do it for you, its more correct coding
Mark__C
09-20-2002, 11:41 PM
Yes, Andy is right. It's more proper and easier coding. If you wanted to convert minutes to seconds somewhere else in your program, all you would have to do is Long = MinToSec(Minutes), instead of typing Seconds = Minutes * 60 everywhere. While, not that much easier with a simple function such as converting minutes to seconds, when you begin to use more advanced and complex things, you will notice the advantage. :)
ok, but i havent learned that stuff yet...i saw in this big book we use at school that code like that was coming up soon...
yes, it will help make your code easier to read and more professional
Mark__C
09-21-2002, 01:21 PM
Well take the initiative and learn on your own...
i think hes taking class or something.. but read ahead then you look smart when you do it in class lol
yes lol, actually we havent done math or any of that, and i just read ahead...in my BORING computer apps class, i do programming all hour :) i just make my own programs, and see what i can do...
anyways, i started some programs, and i was wondering.
how would i make a textbox where i can put in numbers, but if i put in letters it will make a label say something or a pop up say something?
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii < 48 Or KeyAscii > 57 Then
MsgBox "Numbers Only"
End If
End Sub
'where Text1 is your text box.
'also you could use "If KeyAscii < asc("0") Or KeyAscii > asc("9") Then"
'because the ascii numbers for 0 is 48 and 9 is 57
hope this makes sence :)
SurGe-
09-25-2002, 05:15 PM
im totally new to VB and i was wondering how i make programs can someone help me thx :)
SurGe-
09-25-2002, 05:18 PM
and sry but i also need to know why the error "System Error &H8007007E (-2147024770). The specified module could not be found." would come up when i try to open a program? sry for double posting
type that in on google. it will probably find something
leblitzer
08-24-2003, 04:09 PM
Originally posted by The___Sniper___
Just need some help with beginning of Vb 6. I downloaded and just need help getting started. I know stove is a big help but still would still like some other info about how it works.
write printf("Hello world");
must work
leblitzer
08-24-2003, 04:43 PM
oups u must import <stdio.h> n another stuff before
pugamsish
08-25-2003, 12:05 PM
You have no clue what you are talking about...
pugamsish
08-25-2003, 12:05 PM
Just posting from some help site. You are not a programmer Leb, you are a RIPPER.
baloney_mahoney
08-25-2003, 09:25 PM
Originally posted by leblitzer
write printf("Hello world");
must work
lol, that's for C not VB
baloney_mahoney
08-25-2003, 09:34 PM
Originally posted by Andy
does anyone know an easier way to convert java classes into vb code than learning java?
That question is arbitrary. You ask '....easier way....' easier than what? .......'into vb code than learning java' .... is a different question.
There is no easy way to convert java classes into VB. It can, however be done. But, it is easier to learn VB than to learn how to convert java classes into VB. By far!
pugamsish
08-26-2003, 05:38 PM
VB is easy to learn. A lot easier to learn than java.
vBulletin v3.5.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.