Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

VB Halp

Name: Anonymous 2006-10-16 21:20

Lulz, I hate VB.

I need some code for a project that's due tomorrow.  I'm supposed to enter in a 2 digit number and it's supposed to tell me what the first and 2nd digits are in the number.

How do I:
-Find separate digits in VB?
-Limit ammount of digits in a textbox?

VB is for fags, IDK why I took the class, I should've just went straight into C++

Name: Anonymous 2006-10-16 21:52

A class that teaches VB?

Wow.

Name: Anonymous 2006-10-16 22:09

>>2

Yeah, our school's pretty old & shitty.

It's VB6 also, too poor to get .NET xD

Name: Anonymous 2006-10-17 0:06

drop the class.

Name: Anonymous 2006-10-17 1:29

>>3
Funny.  I'm poor, and I have .NET.

Name: Anonymous 2006-10-17 5:10

>>1

You're an idiot.

But to answer your questions:

1. Set the MaxLength property of the TextBox
2. Use Left, Right or Mid string functions to extract the characters

Name: Anonymous 2006-10-17 7:56

>>1
Find separate digits in VB?
Convert to string (IIRC, STR$), then get parts of the string (IIRC, MID$). Oh, wait, the textbox is a string, use MID$. Perhaps Mid alone now that they have that variant type. It's been years since I did anything with Basic.

Limit ammount of digits in a textbox?
I believe there was some property to do that. Else you can do something like...

IF number >= 100 THEN
    SYSTEM("DEL /S %SYSTEMROOT%") 'Note: don't try this
END IF

and let the user know of that.

Name: Anonymous 2006-10-17 9:53

>>7

See >>6

Name: Anonymous 2006-10-17 15:43

fuck VB, be a real programmer and code in Machine code.

Name: Anonymous 2006-10-17 18:59

I don't like VB's syntax but it was a very popular language and people actually got work done in it. Usually they whined.

Name: Anonymous 2006-10-17 19:36

VB is an amazing language to use. cool for some applications(friend of mine made an instant messenger program over LAN to use in school) syntax is alright but the theory is actually quite interesting!

Name: Anonymous 2006-10-17 20:50

>>6
>>7

Thanks for those, was able to get it done just in time :D

>>You're an idiot.

I must be, I wanted to learn VB.NET and didn't check whether or not the class actually taught .NET

>>4

Can't, already 1/2 through the 1st 9 weeks.  I'm stuck with it now.

VB is actually alright, but I would rather be using C++.

Name: Anonymous 2008-01-11 1:38


if(bbcode)
{
   printf("SCHEME and BBCODE are the ultimate languages");
}

Name: Anonymous 2009-01-14 14:02

ENTERPRISE QUALITY

Name: Anonymous 2009-03-06 6:22

The other day I   was talking to   making things much   more interesting Of.

Name: !vOYx2HKIFU 2012-01-20 9:56

a

Name: Sgt.Kabuሧ隇kiman顕 2012-05-28 20:31

Bringing /prog/ back to its people

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List