|
 |
beginning_vb thread: Option Explicit
Message #1 by "Greg Jones" <gjones67@s...> on Thu, 2 Aug 2001 03:11:05
|
|
Hello,
I understand thoroughly what Option Explicit does, but can't seem to
find where in the VB6 environment that I can set it so that 'Option
Explicit' is automatically inserted at the beginning of all my code.
Obvioiusly typing it in isn't a big deal, unless you forget! :) I forget
easy. I didn't find it in the book and tried the VB6 online help, but it
doesn't say. Thanks. Great book by the way.
Sincerely,
Greg Jones
Message #2 by "alex" <alex@l...> on Thu, 2 Aug 2001 16:20:04 +0800
|
|
hi, greg,
do it with "Tools"->"Option..."->"Editor"->"Require variable
declaration".
alex
-----Original Message-----
From: Greg Jones [mailto:gjones67@s...]
Sent: Thursday, August 02, 2001 3:11 AM
To: beginning vb
Subject: [beginning_vb] Option Explicit
Hello,
I understand thoroughly what Option Explicit does, but can't seem to
find where in the VB6 environment that I can set it so that 'Option
Explicit' is automatically inserted at the beginning of all my code.
Obvioiusly typing it in isn't a big deal, unless you forget! :) I
forget
easy. I didn't find it in the book and tried the VB6 online help, but
it
doesn't say. Thanks. Great book by the way.
Sincerely,
Greg Jones
---
You are currently subscribed to beginning_vb as: alex@l... To
unsubscribe send a blank email to
$subst('Email.Unsub')
Message #3 by "Richard Lobel" <richard@a...> on Thu, 2 Aug 2001 01:18:52 -0700
|
|
Go to Tools, Options and check the box that says Require Variable
Declaration.
Richard Lobel
Accessible Data
richard@a... <mailto:richard@a...>
Cell: (xxx) xxx-xxxx
Fax: (xxx) xxx-xxxx
Message #4 by "Kaz" <kazuoc@h...> on Wed, 1 Aug 2001 22:20:47 -1000
|
|
From the menu select Tools->Options
In the "Editor" tab check "Require Variable Declaration"
> -----Original Message-----
> From: Greg Jones [mailto:gjones67@s...]
> Sent: Wednesday, August 01, 2001 5:11 PM
> To: beginning vb
> Subject: [beginning_vb] Option Explicit
>
>
> Hello,
> I understand thoroughly what Option Explicit does, but can't seem to
> find where in the VB6 environment that I can set it so that 'Option
> Explicit' is automatically inserted at the beginning of all my code.
> Obvioiusly typing it in isn't a big deal, unless you forget! :) I forget
> easy. I didn't find it in the book and tried the VB6 online help, but it
> doesn't say. Thanks. Great book by the way.
>
> Sincerely,
> Greg Jones
> $subst('Email.Unsub')
>
>
Message #5 by "Tim Rupp" <tim@t...> on Thu, 2 Aug 2001 05:47:06 -0400
|
|
TOOLS-OPTIONS-EDITOR-REQUIRE VARIABLE DECLARATION
> -----Original Message-----
> From: Greg Jones [mailto:gjones67@s...]
> Sent: Thursday, August 02, 2001 3:11 AM
> To: beginning vb
> Subject: [beginning_vb] Option Explicit
>
>
> Hello,
> I understand thoroughly what Option Explicit does, but can't seem to
> find where in the VB6 environment that I can set it so that 'Option
> Explicit' is automatically inserted at the beginning of all my code.
> Obvioiusly typing it in isn't a big deal, unless you forget! :) I forget
> easy. I didn't find it in the book and tried the VB6 online help, but it
> doesn't say. Thanks. Great book by the way.
>
> Sincerely,
> Greg Jones
Message #6 by Anand Singh <asingh@p...> on Thu, 02 Aug 2001 13:46:54 +0500
|
|
From the tools menu, go to options and set "Require varaiable declaration"
Anand
At 03:11 AM 8/2/01, you wrote:
>Hello,
> I understand thoroughly what Option Explicit does, but can't seem to
>find where in the VB6 environment that I can set it so that 'Option
>Explicit' is automatically inserted at the beginning of all my code.
>Obvioiusly typing it in isn't a big deal, unless you forget! :) I forget
>easy. I didn't find it in the book and tried the VB6 online help, but it
>doesn't say. Thanks. Great book by the way.
>
>Sincerely,
>Greg Jones
Message #7 by "Curtis F. Barnett" <cfb@s...> on Thu, 2 Aug 2001 08:10:57 -0500
|
|
Greg -
1. Open VB6 and start a standard project
2. Click Tools/Options
3. On the Editor Tab click "Require Variable Declaration"
Option Explicit will not be in your First Form, but subsequent Forms will
have it inserted automatically.
Good luck.
Curtis F. Barnett
SailorSoft.com
> -----Original Message-----
> From: Greg Jones [mailto:gjones67@s...]
> Sent: Wednesday, August 01, 2001 10:11 PM
> To: beginning vb
> Subject: [beginning_vb] Option Explicit
>
>
> Hello,
> I understand thoroughly what Option Explicit does, but can't seem to
> find where in the VB6 environment that I can set it so that 'Option
> Explicit' is automatically inserted at the beginning of all my code.
> Obvioiusly typing it in isn't a big deal, unless you forget! :) I forget
> easy. I didn't find it in the book and tried the VB6 online help, but it
> doesn't say. Thanks. Great book by the way.
>
> Sincerely,
> Greg Jones
> $subst('Email.Unsub')
>
>
>
Message #8 by "Tim Rupp" <tim@t...> on Thu, 2 Aug 2001 09:31:39 -0400
|
|
>>Option Explicit will not be in your First Form, but subsequent Forms will
>>have it inserted automatically.
Huh??? All my forms have the declaration inserted...
-----Original Message-----
From: Curtis F. Barnett
Sent: Thursday, August 02, 2001 9:11 AM
To: beginning vb
Subject: [beginning_vb] RE: Option Explicit
Greg -
1. Open VB6 and start a standard project
2. Click Tools/Options
3. On the Editor Tab click "Require Variable Declaration"
Option Explicit will not be in your First Form, but subsequent Forms will
have it inserted automatically.
Good luck.
Curtis F. Barnett
SailorSoft.com
> -----Original Message-----
> From: Greg Jones
> Sent: Wednesday, August 01, 2001 10:11 PM
> To: beginning vb
> Subject: [beginning_vb] Option Explicit
>
>
> Hello,
> I understand thoroughly what Option Explicit does, but can't seem to
> find where in the VB6 environment that I can set it so that 'Option
> Explicit' is automatically inserted at the beginning of all my code.
> Obvioiusly typing it in isn't a big deal, unless you forget! :) I forget
> easy. I didn't find it in the book and tried the VB6 online help, but it
> doesn't say. Thanks. Great book by the way.
>
> Sincerely,
> Greg Jones
>
Message #9 by "Curtis F. Barnett" <cfb@s...> on Thu, 2 Aug 2001 09:12:37 -0500
|
|
Tim
Once you have checked "Require Variable Declaration" subsequent new forms
will have Option Explicit inserted, but until there is a form open, you can
not get to Tools. After making the election, I returned to the initial Form
and "Option Explicit" was not included as the first line in General. Close
and then reopen VB and start a new project and Option Explicit will be
there. Or open a new Form in the initial Project and you'll have it.
Curtis
> -----Original Message-----
> From: Tim Rupp [mailto:tim@t...]
> Sent: Thursday, August 02, 2001 8:32 AM
> To: beginning vb
> Subject: [beginning_vb] RE: Option Explicit
>
>
> >>Option Explicit will not be in your First Form, but subsequent
> Forms will
> >>have it inserted automatically.
>
> Huh??? All my forms have the declaration inserted...
>
>
> -----Original Message-----
> From: Curtis F. Barnett
> Sent: Thursday, August 02, 2001 9:11 AM
> To: beginning vb
> Subject: [beginning_vb] RE: Option Explicit
>
>
> Greg -
> 1. Open VB6 and start a standard project
> 2. Click Tools/Options
> 3. On the Editor Tab click "Require Variable Declaration"
>
> Option Explicit will not be in your First Form, but subsequent Forms will
> have it inserted automatically.
>
> Good luck.
>
> Curtis F. Barnett
> SailorSoft.com
>
>
> > -----Original Message-----
> > From: Greg Jones
> > Sent: Wednesday, August 01, 2001 10:11 PM
> > To: beginning vb
> > Subject: [beginning_vb] Option Explicit
> >
> >
> > Hello,
> > I understand thoroughly what Option Explicit does, but can't seem to
> > find where in the VB6 environment that I can set it so that 'Option
> > Explicit' is automatically inserted at the beginning of all my code.
> > Obvioiusly typing it in isn't a big deal, unless you forget! :)
> I forget
> > easy. I didn't find it in the book and tried the VB6 online
> help, but it
> > doesn't say. Thanks. Great book by the way.
> >
> > Sincerely,
> > Greg Jones
> >
Message #10 by "Greg Jones" <gjones67@s...> on Thu, 2 Aug 2001 17:05:37
|
|
Thanks guys. If I was patient and read on it tells me. I guess I need to
practice my patience. Mucho Danke. (little Spanish and German there :) )
Greg
> Tim
>
> Once you have checked "Require Variable Declaration" subsequent new forms
> will have Option Explicit inserted, but until there is a form open, you
can
> not get to Tools. After making the election, I returned to the initial
Form
> and "Option Explicit" was not included as the first line in General.
Close
> and then reopen VB and start a new project and Option Explicit will be
> there. Or open a new Form in the initial Project and you'll have it.
>
> Curtis
>
> > -----Original Message-----
> > From: Tim Rupp [mailto:tim@t...]
> > Sent: Thursday, August 02, 2001 8:32 AM
> > To: beginning vb
> > Subject: [beginning_vb] RE: Option Explicit
> >
> >
> > >>Option Explicit will not be in your First Form, but subsequent
> > Forms will
> > >>have it inserted automatically.
> >
> > Huh??? All my forms have the declaration inserted...
> >
> >
> > -----Original Message-----
> > From: Curtis F. Barnett
> > Sent: Thursday, August 02, 2001 9:11 AM
> > To: beginning vb
> > Subject: [beginning_vb] RE: Option Explicit
> >
> >
> > Greg -
> > 1. Open VB6 and start a standard project
> > 2. Click Tools/Options
> > 3. On the Editor Tab click "Require Variable Declaration"
> >
> > Option Explicit will not be in your First Form, but subsequent Forms
will
> > have it inserted automatically.
> >
> > Good luck.
> >
> > Curtis F. Barnett
> > SailorSoft.com
> >
> >
> > > -----Original Message-----
> > > From: Greg Jones
> > > Sent: Wednesday, August 01, 2001 10:11 PM
> > > To: beginning vb
> > > Subject: [beginning_vb] Option Explicit
> > >
> > >
> > > Hello,
> > > I understand thoroughly what Option Explicit does, but can't
seem to
> > > find where in the VB6 environment that I can set it so that 'Option
> > > Explicit' is automatically inserted at the beginning of all my code.
> > > Obvioiusly typing it in isn't a big deal, unless you forget! :)
> > I forget
> > > easy. I didn't find it in the book and tried the VB6 online
> > help, but it
> > > doesn't say. Thanks. Great book by the way.
> > >
> > > Sincerely,
> > > Greg Jones
> > >
|
|
 |