Discussion:
VBIDE and msgbox
(too old to reply)
SK
2006-08-19 18:14:10 UTC
Permalink
Hello everybody,

I managed to learn how to get form, control, module names in an active VB
project using VBIDE, how can I get, for example message boxes in those forms,
modules etc.?

A pointer to a good VBIDE tutorial or manual would be a good answer too,

thank you in advance

SK
Randy Birch
2006-08-19 19:52:22 UTC
Permalink
Just call it...

msgbox "Hello World, vbexclamation or vbOkOnly, "WhooHoo"
--
Randy Birch
MS MVP Visual Basic
http://vbnet.mvps.org/

Please reply to the newsgroups so all can participate.




"SK" <***@siol.net> wrote in message news:SxIFg.4698$***@news.siol.net...
Hello everybody,

I managed to learn how to get form, control, module names in an active VB
project using VBIDE, how can I get, for example message boxes in those
forms,
modules etc.?

A pointer to a good VBIDE tutorial or manual would be a good answer too,

thank you in advance

SK
Donald A. Herman
2006-08-22 11:07:40 UTC
Permalink
Maybe I don't know what your asking for. Because I didn't understand Randy's
response. But if your looking for the word "msgbox" use "Find" as in

Dim CM As VBIDE.CodeModule

CM.Find FindString, SLine, SCol, ELine, ECol, MatchWord, MatchCase
--
Donald A. Herman
Software - Scheduler Pro, Disk Cataloger, Math Wizard
http://don_herman.tripod.com
Office Extras, Addins
http://don_herman.tripod.com/msoextras
.
.
Post by SK
Hello everybody,
I managed to learn how to get form, control, module names in an active VB
project using VBIDE, how can I get, for example message boxes in those forms,
modules etc.?
A pointer to a good VBIDE tutorial or manual would be a good answer too,
thank you in advance
SK
SK
2006-09-02 21:47:43 UTC
Permalink
Thank you for your answer,

your answer was helpful, but I have few more questions:

- is there no function to extract strings fom VBIDE?
IDE knows if you forget to add closing " at the end of string, why is there no
function to extract strings from VBIDE?

- I tried to search the internet. There are not many online resources for
VBIDE or am I wrong?
Can you give me some pointers, advices etc. where to search information

SK
Post by Donald A. Herman
Maybe I don't know what your asking for. Because I didn't understand Randy's
response. But if your looking for the word "msgbox" use "Find" as in
Dim CM As VBIDE.CodeModule
CM.Find FindString, SLine, SCol, ELine, ECol, MatchWord, MatchCase
--
Donald A. Herman
Software - Scheduler Pro, Disk Cataloger, Math Wizard
http://don_herman.tripod.com
Office Extras, Addins
http://don_herman.tripod.com/msoextras
..
..
Post by SK
Hello everybody,
I managed to learn how to get form, control, module names in an active VB
project using VBIDE, how can I get, for example message boxes in those forms,
modules etc.?
A pointer to a good VBIDE tutorial or manual would be a good answer too,
thank you in advance
SK
Donald A. Herman
2006-09-03 18:36:02 UTC
Permalink
I was going to say MSDN but I think they stopped support for VB6, so I don't
know where to look.

What strings? strings in code modules ? If so you extract strings, like for
example replacing words sand stuff.
--
Donald A. Herman
Software - Scheduler Pro, Disk Cataloger, Math Wizard
http://don_herman.tripod.com
Office Extras, Addins
http://don_herman.tripod.com/msoextras
.
.
Post by SK
Thank you for your answer,
- is there no function to extract strings fom VBIDE?
IDE knows if you forget to add closing " at the end of string, why is there no
function to extract strings from VBIDE?
- I tried to search the internet. There are not many online resources for
VBIDE or am I wrong?
Can you give me some pointers, advices etc. where to search information
SK
Post by Donald A. Herman
Maybe I don't know what your asking for. Because I didn't understand Randy's
response. But if your looking for the word "msgbox" use "Find" as in
Dim CM As VBIDE.CodeModule
CM.Find FindString, SLine, SCol, ELine, ECol, MatchWord, MatchCase
--
Donald A. Herman
Software - Scheduler Pro, Disk Cataloger, Math Wizard
http://don_herman.tripod.com
Office Extras, Addins
http://don_herman.tripod.com/msoextras
..
..
Post by SK
Hello everybody,
I managed to learn how to get form, control, module names in an active VB
project using VBIDE, how can I get, for example message boxes in those forms,
modules etc.?
A pointer to a good VBIDE tutorial or manual would be a good answer too,
thank you in advance
SK
SK
2006-09-03 18:58:02 UTC
Permalink
What strings?

like:

msgbox "Test"
mecaption = "Test"

Those strings.

If I forget the closing " then IDE gives me an error. The IDE knows of the
missing ", so it must be some logic behind it. Can this logic be used to
extract strings or must I use find and replace? There is no problem to do
this, but I am affraid it would be the hard way...

SK
Post by Donald A. Herman
I was going to say MSDN but I think they stopped support for VB6, so I don't
know where to look.
What strings? strings in code modules ? If so you extract strings, like for
example replacing words sand stuff.
--
Donald A. Herman
Software - Scheduler Pro, Disk Cataloger, Math Wizard
http://don_herman.tripod.com
Office Extras, Addins
http://don_herman.tripod.com/msoextras
..
..
Post by SK
Thank you for your answer,
- is there no function to extract strings fom VBIDE?
IDE knows if you forget to add closing " at the end of string, why is there no
function to extract strings from VBIDE?
- I tried to search the internet. There are not many online resources for
VBIDE or am I wrong?
Can you give me some pointers, advices etc. where to search information
SK
Post by Donald A. Herman
Maybe I don't know what your asking for. Because I didn't understand Randy's
response. But if your looking for the word "msgbox" use "Find" as in
Dim CM As VBIDE.CodeModule
CM.Find FindString, SLine, SCol, ELine, ECol, MatchWord, MatchCase
--
Donald A. Herman
Software - Scheduler Pro, Disk Cataloger, Math Wizard
http://don_herman.tripod.com
Office Extras, Addins
http://don_herman.tripod.com/msoextras
..
..
Post by SK
Hello everybody,
I managed to learn how to get form, control, module names in an active VB
project using VBIDE, how can I get, for example message boxes in those forms,
modules etc.?
A pointer to a good VBIDE tutorial or manual would be a good answer too,
thank you in advance
SK
Thomas Möller
2006-09-03 20:58:42 UTC
Permalink
Hi!
Post by Donald A. Herman
What strings?
msgbox "Test"
mecaption = "Test"
Those strings.
If I forget the closing " then IDE gives me an error. The IDE knows
of the missing ", so it must be some logic behind it. Can this logic
be used to extract strings or must I use find and replace? There is
no problem to do this, but I am affraid it would be the hard way...
I think you have to use "Find and Replace". IMHO there ist no other way
to meet your goal.

CU
--
Thomas

Homepage: www.Team-Moeller.de

Anmeldung zur AEK: http://www.donkarl.com/AEK
Donald A. Herman
2006-09-04 13:45:09 UTC
Permalink
CM.Find FindString, SLine, SCol, ELine, ECol, MatchWord, MatchCase

Returns the exact position of the text!
do your string manipulation, then you use

CM.ReplaceLine SLine, ""
--
Donald A. Herman
Software - Scheduler Pro, Disk Cataloger, Math Wizard
http://don_herman.tripod.com
Office Extras, Addins
http://don_herman.tripod.com/msoextras
.
.
Post by Donald A. Herman
What strings?
msgbox "Test"
mecaption = "Test"
Those strings.
If I forget the closing " then IDE gives me an error. The IDE knows of the
missing ", so it must be some logic behind it. Can this logic be used to
extract strings or must I use find and replace? There is no problem to do
this, but I am affraid it would be the hard way...
SK
Post by Donald A. Herman
I was going to say MSDN but I think they stopped support for VB6, so I don't
know where to look.
What strings? strings in code modules ? If so you extract strings, like for
example replacing words sand stuff.
--
Donald A. Herman
Software - Scheduler Pro, Disk Cataloger, Math Wizard
http://don_herman.tripod.com
Office Extras, Addins
http://don_herman.tripod.com/msoextras
..
..
Post by SK
Thank you for your answer,
- is there no function to extract strings fom VBIDE?
IDE knows if you forget to add closing " at the end of string, why is there no
function to extract strings from VBIDE?
- I tried to search the internet. There are not many online resources for
VBIDE or am I wrong?
Can you give me some pointers, advices etc. where to search information
SK
Post by Donald A. Herman
Maybe I don't know what your asking for. Because I didn't understand Randy's
response. But if your looking for the word "msgbox" use "Find" as in
Dim CM As VBIDE.CodeModule
CM.Find FindString, SLine, SCol, ELine, ECol, MatchWord, MatchCase
--
Donald A. Herman
Software - Scheduler Pro, Disk Cataloger, Math Wizard
http://don_herman.tripod.com
Office Extras, Addins
http://don_herman.tripod.com/msoextras
..
..
Post by SK
Hello everybody,
I managed to learn how to get form, control, module names in an active VB
project using VBIDE, how can I get, for example message boxes in those forms,
modules etc.?
A pointer to a good VBIDE tutorial or manual would be a good answer too,
thank you in advance
SK
sk
2006-09-05 08:48:15 UTC
Permalink
Thank you all,

I got the answer, the program is almost finished

SK
Post by Donald A. Herman
CM.Find FindString, SLine, SCol, ELine, ECol, MatchWord, MatchCase
Loading...