473,320 Members | 1,713 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,320 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 1291
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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.