VB Help urgently please!

Get help on programming - C++, Java, Delphi, etc.
Post Reply
hexXie
Registered User
Posts: 872
Joined: 01 Jan 2005, 02:00
Location: DNA Sequencing Labs

VB Help urgently please!

Post by hexXie »

This is really stupid, but I need to know how to run a sub as soon as the form/program has loaded - we havent worked with classes yet, so i need something else.

PLEASE!?!?!
Everyday, I browse the forums just to make sure that there still are people more pathetic than me.
Moses
Registered User
Posts: 2545
Joined: 21 Jul 2004, 02:00
Location: Location:
Contact:

Post by Moses »

I have never really done anything in VB, but is there not a form.create() or form.show() method? Try put code in there.
Zell
Permanently Banned
Posts: 6270
Joined: 14 Mar 2005, 02:00

Post by Zell »

What he means... or should, because this method is much easier....

Is when we go Open "c:\......." For Input As 1

How do you take the info stored inside the text file and assign it to your local variables?
Zell
Permanently Banned
Posts: 6270
Joined: 14 Mar 2005, 02:00

Post by Zell »

Never mind... its sorted... If he listened to me all along... -_-
Law
Registered User
Posts: 1569
Joined: 12 Sep 2003, 02:00
Location: UND

Post by Law »

you have the name of a textfield so all you dou is

textfieldname.gettext()
Image

MAY THE CHEESE BE WITH YOU!
{PK} Law
hexXie
Registered User
Posts: 872
Joined: 01 Jan 2005, 02:00
Location: DNA Sequencing Labs

Post by hexXie »

nooo... it was as the first reply stated.

thanks moses.... i was using the form name and trying to load like that, instead of using "FORM_load".... thanks! sorted.
Everyday, I browse the forums just to make sure that there still are people more pathetic than me.
Moses
Registered User
Posts: 2545
Joined: 21 Jul 2004, 02:00
Location: Location:
Contact:

Post by Moses »

Ha ha. I helped someone having never looked at VB ever. What do you mean by sub, by the way?
Candidate
Registered User
Posts: 54
Joined: 21 Apr 2006, 02:00

Post by Candidate »

Just FYI for moses.

In VB a sub is the same as a method in JAVA/C++. I.e block of code that can be called to do soemthing with out returning anything.
Hex_Rated
Registered User
Posts: 3679
Joined: 19 Jan 2006, 02:00
Contact:

Post by Hex_Rated »

Or known as a void function or procedure in non OOP or less striclty OOP languages (straight/embedded C, Delphi, some types of assembler)
DFI LanParty X48 LT-2TR
Intel Q9450 @ 3.2Ghz
Dell 24" 2408WFP | Phillips 37" 1080p
Sapphire HD4870 X2 2GB
4GB Corsair DDR-2 1066 | Thermalrite 120 Ultra Extreme | G9 Mouse | G15 Keyboard
Vista Ultimate x64
r-it
Registered User
Posts: 168
Joined: 19 May 2005, 02:00
Location: Y do u wanna know, u JOO

Post by r-it »

Sorry for thread spamming, but Hex_Rated, would you perhaps know of training centres that offer assembler and software testing on a part-time basis
Daughters and sons of the soil, I greet you with my revolutionary, unapologetic, Afican greeting in saying "Izwe Lethu!"
Hex_Rated
Registered User
Posts: 3679
Joined: 19 Jan 2006, 02:00
Contact:

Post by Hex_Rated »

Lately I've only encounterred assembly code while working with "postage stamp" embedded devices and in the dissassembly windows of some compilers. Its not very commonly used today outside of very low-level (ie hardware level) designs. Your best bet would be to look for a microproccessor architecture / engineering course if you want to learn assembler. One of the quality assurance guys at our company has done a bit of assembler lately, I think he studied at Wits Tech concentrating on the PIC instruction set. I will find out for you.
DFI LanParty X48 LT-2TR
Intel Q9450 @ 3.2Ghz
Dell 24" 2408WFP | Phillips 37" 1080p
Sapphire HD4870 X2 2GB
4GB Corsair DDR-2 1066 | Thermalrite 120 Ultra Extreme | G9 Mouse | G15 Keyboard
Vista Ultimate x64
Post Reply