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-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.

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