PC Review


Reply
Thread Tools Rate Thread

Current Mode

 
 
D Miller
Guest
Posts: n/a
 
      12th Apr 2004
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


 
Reply With Quote
 
 
 
 
D Miller
Guest
Posts: n/a
 
      12th Apr 2004
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" <(E-Mail Removed)> wrote in message
news:zhqec.5864$(E-Mail Removed)...
> 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
>
>



 
Reply With Quote
 
Armin Zingler
Guest
Posts: n/a
 
      12th Apr 2004
"D Miller" <(E-Mail Removed)> 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

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
no used current style as standart mode Ch_Rom Windows XP Customization 2 6th May 2010 08:51 PM
no used current style as standart mode Ch_Rom Windows XP Customization 7 6th May 2010 10:54 AM
the current code in break mode. freelancer Microsoft Access 0 25th Apr 2008 12:30 PM
how to see current hdd transfer mode (33/66/100/133) ? dsads Computer Hardware 8 18th Dec 2003 08:04 PM
Current mode of calculation in Excel Scott Dickinson Microsoft Excel Misc 2 10th Oct 2003 11:33 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:49 AM.