PDA

View Full Version : VB6 what is difference between call and just running a sub



fokuslee
January 14th, 2009, 05:57 PM
Hi
2 questions:

1. What is the difference between Call a procedure like a function
or just run the procedure..
Thanks abunch

2. How do i initialize some var values in class, so that everytime an object is created it has those initial variables

eye208
January 14th, 2009, 06:06 PM
The Call keyword is optional. It is a relic from older BASIC versions.

To initialize a class object, write a subroutine "Class_Initialize". Note that this is only valid for VB6. VB.NET uses proper constructor functions.

Are you using VB6 on Linux?

fokuslee
January 14th, 2009, 06:29 PM
thank you for the explaination

no im programming extension to ESRI's GIS. windows only

I just posted here b/c of friendly help i got from past.

but im learning python and they have a few ide for linux

currrently running on vm