473,387 Members | 1,638 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Current Mode

Hopefully this will make sence. Here is my problem, I have a form that
takes some data from a database in the when "load" procedure is run. The
problem is that the database is not available when coding the problem at
design time. The load procedure seems to run even at design time. I
remember from earlier versions of VB there was a command I could enter at
the beginning of the procedure to exit out if it was desgin mode.. But for
the life of me I can not recall what it was nor can I figure it out in the
current version... Anyone have any ideas?

Thanks,
David
Nov 20 '05 #1
4 1293
I think I came up with a better way to ask the question, is there some way
to determine Runtime -vs- Design time?

Thanks again

"D Miller" <de**********@yahoo.com> wrote in message
news:zh*****************@newsread2.news.pas.earthl ink.net...
Hopefully this will make sence. Here is my problem, I have a form that
takes some data from a database in the when "load" procedure is run. The
problem is that the database is not available when coding the problem at
design time. The load procedure seems to run even at design time. I
remember from earlier versions of VB there was a command I could enter at
the beginning of the procedure to exit out if it was desgin mode.. But for the life of me I can not recall what it was nor can I figure it out in the
current version... Anyone have any ideas?

Thanks,
David

Nov 20 '05 #2
I think I came up with a better way to ask the question, is there some way
to determine Runtime -vs- Design time?

Thanks again

"D Miller" <de**********@yahoo.com> wrote in message
news:zh*****************@newsread2.news.pas.earthl ink.net...
Hopefully this will make sence. Here is my problem, I have a form that
takes some data from a database in the when "load" procedure is run. The
problem is that the database is not available when coding the problem at
design time. The load procedure seems to run even at design time. I
remember from earlier versions of VB there was a command I could enter at
the beginning of the procedure to exit out if it was desgin mode.. But for the life of me I can not recall what it was nor can I figure it out in the
current version... Anyone have any ideas?

Thanks,
David

Nov 20 '05 #3
"D Miller" <de**********@yahoo.com> schrieb
Hopefully this will make sence. Here is my problem, I have a form
that takes some data from a database in the when "load" procedure is
run. The problem is that the database is not available when coding
the problem at design time. The load procedure seems to run even at
design time. I remember from earlier versions of VB there was a
command I could enter at the beginning of the procedure to exit out
if it was desgin mode.. But for the life of me I can not recall what
it was nor can I figure it out in the current version... Anyone have
any ideas?


I think it only runs if you design a form derived from the Form containing
the code.
If not me.designmode then
'database stuff
end if
--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #4
"D Miller" <de**********@yahoo.com> schrieb
Hopefully this will make sence. Here is my problem, I have a form
that takes some data from a database in the when "load" procedure is
run. The problem is that the database is not available when coding
the problem at design time. The load procedure seems to run even at
design time. I remember from earlier versions of VB there was a
command I could enter at the beginning of the procedure to exit out
if it was desgin mode.. But for the life of me I can not recall what
it was nor can I figure it out in the current version... Anyone have
any ideas?


I think it only runs if you design a form derived from the Form containing
the code.
If not me.designmode then
'database stuff
end if
--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

72
by: Mel | last post by:
Are we going backwards ? (please excuse my spelling...) In my opinion an absolute YES ! Take a look at what we are doing ! we create TAGS, things like <H1> etc. and although there are tools...
5
by: harborboy76 | last post by:
Hi all, First of all, just want to let you know that I'm coming from Informix background, and we just recently migrated to DB2. It's been a great new learning experience. For the time being, I...
0
by: YFS DBA | last post by:
I'm getting an error message when I open queries then try to close them: "This action will reset the current code in break mode" Clicking on 'Yes' just brings up the same message. If I change...
11
by: Ken Varn | last post by:
I want to be able to determine my current line, file, and function in my C# application. I know that C++ has the __LINE__, __FUNCTION__, and __FILE___ macros for getting this, but I cannot find a...
4
by: Dan Bart | last post by:
I am using an application which is a modification of IBuySpy Portal. It is using Forms authentication. Users login and their name is added to Context Then I use: ...
3
by: Damian | last post by:
Hi everyone I'm having an issue with one of our applications. I'm getting the following error when attempting to log in to the site: Server Error in 'xxxxxxxxxxxxxxxx' Application....
4
by: Nick | last post by:
I'm developing an intranet app, and want to get the current user name for logging purposes. I've turned off anonymous access, and turned on windows authentication in the IIS config. The apps...
1
by: Joseph Geretz | last post by:
Why isn't the ASP.NET runtime providing a valid reference for this object to my WebService? I'm trying to use WSE and DIME to send attachments via Web Service. I've provided a whole lot of...
3
by: db2admin | last post by:
hi, our db2advis is broken and i am trying to find other ways to get recommended indexes i tried using command "SET CURRENT EXPLAIN MODE RECOMMEND INDEXES" and it populated ADVISE_INDEXES...
3
by: duyanning | last post by:
I have written a pyhton script that will process data file in current working directory. My script is in an different directory to data file. When I debug this script using pdb within emacs, emacs...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.