 |
 |

02-01-2005, 02:51 PM
|
|
Junior Contributor
|
|
Join Date: Apr 2004
Location: 's-Gravenpolder, NL
Posts: 389
|
|
Why am I here at this time of day?
|
Just thinking. It's 10.30PM over here and I'm still on the forum. Why is it that sometimes we stick around too long? I know I'm not the only one.
Hey, I learned VBA for work, but I left work 6 hours ago. I must be doing something wrong. Am I a codaholic?
Code:
'Code below should be in the ThisBody module of your project.
'It can be used in the PositionChange event of the ThisBody module, but...
'remember that the BoyfriendActionChange event of the ThisGirlfriend module
'might also be triggered at the same time.
Select Case Position
Case Vertical
Select Case Location
Case AtWork
MsgBox "No problem" & vbCrLf & "Keep working"
Case AtHome
If Computer.MozillaFireFox.CurrentSite = _
[url]http://www.xtremevbtalk.com[/url] Then
MsgBox "You're a codaholic!", vbCritical
GirlfriendWarning = Inputbox("Is you girlfriend angry about your coding again?", vbQuestion)
If GirlfriendWarning = vbYes Then
Call GirlfriendCritical
End If
End If
End Select
Case Horizontal
If LeftEye is Open and RightEye is Open Then
MsgBox "You are probably doing something nice" 'possibly also check where you are
Else
Exit Sub
End If
End Select
Public Sub GirlfriendCritical()
MsgBox "Shut down all machines and buy flowers for Girlfriend", vbCritical
End Sub
Maybe I have to do some debugging...
|
__________________
"Accept what you can not change and change what you can not accept" - Me
"Normal is the average of all oddities" - Me
"Don't re-invent the wheel!" - My dad
Please enclose your code in [vb] and [/vb] tags
Last edited by Wheels1978; 02-01-2005 at 03:06 PM.
|

02-01-2005, 04:07 PM
|
 |
Contributor
|
|
Join Date: Jul 2004
Location: Northern New Jersey
Posts: 490
|
|
Wow, that's great, wheels. 
|
__________________
nerds unite!
|

02-01-2005, 05:54 PM
|
|
Contributor
|
|
Join Date: Oct 2003
Posts: 747
|
|
So very very true. And so very very sad that he took the time to write that up... 
|
|

02-02-2005, 12:26 AM
|
|
Junior Contributor
|
|
Join Date: Apr 2004
Location: 's-Gravenpolder, NL
Posts: 389
|
|
Quote:
|
Originally Posted by Random
So very very true. And so very very sad that he took the time to write that up... 
|
Does it ever happen to you that you are thinking of some code structure for one of your projects while you are doing something completely different? My experience is that you better write it down that very moment. The code that comes to mind like that is often the best I can think of. 
|
__________________
"Accept what you can not change and change what you can not accept" - Me
"Normal is the average of all oddities" - Me
"Don't re-invent the wheel!" - My dad
Please enclose your code in [vb] and [/vb] tags
|

02-02-2005, 01:02 AM
|
 |
Hydrogen Powered
Administrator * Expert *
|
|
Join Date: Jul 2003
Location: Sacramento, CA
Posts: 6,090
|
|
Wheels - you are still doing ok if you remember what a girlfriend and/or flowers are well enough to code them into your example!
BTW-- what IS a girlfriend?! 
|
__________________
"With the appearance of the AddressOf operator, an entire industry has developed among authors illustrating how to do previously impossible tasks using Visual Basic. Another industry is rapidly developing among consultants helping users who have gotten into trouble attempting these tasks." -Dan Appleman
|

02-02-2005, 04:05 AM
|
|
Junior Contributor
|
|
Join Date: Apr 2004
Location: 's-Gravenpolder, NL
Posts: 389
|
|
Quote:
|
BTW-- what IS a girlfriend?!
|
I know it's different from a boyfriend...
|
__________________
"Accept what you can not change and change what you can not accept" - Me
"Normal is the average of all oddities" - Me
"Don't re-invent the wheel!" - My dad
Please enclose your code in [vb] and [/vb] tags
|

02-02-2005, 04:25 AM
|
|
Contributor
|
|
Join Date: Oct 2003
Posts: 747
|
|
Quote:
|
Originally Posted by Wheels1978
Does it ever happen to you that you are thinking of some code structure for one of your projects while you are doing something completely different?
|
I'm one of those people that can't actively think, as such. I put stuff into my head, wait for it to process in the background, and it comes out some time later. It made things a bit interesting when my teachers accused me of cheating in mathematics classes when I was younger, because I couldn't show my working. I just put the equation into my head and the answer comes out...
|
|

02-02-2005, 04:45 AM
|
|
Junior Contributor
|
|
Join Date: Apr 2004
Location: 's-Gravenpolder, NL
Posts: 389
|
|
You mean nothing happens at runtime?
Or
Code:
Brain.ScreenUpdating = False
|
__________________
"Accept what you can not change and change what you can not accept" - Me
"Normal is the average of all oddities" - Me
"Don't re-invent the wheel!" - My dad
Please enclose your code in [vb] and [/vb] tags
|

02-02-2005, 07:33 AM
|
|
Contributor
|
|
Join Date: Oct 2003
Posts: 747
|
|
|
Hmm...
I'm not sure how to explain it - whether it is a TSR that responds later on, or if it is a 14.4k connection...
Meh. Ask anyone with Asperger's Syndrome. They'll be able to tell you.
|
|

02-02-2005, 07:35 AM
|
|
Contributor
|
|
Join Date: Oct 2003
Posts: 747
|
|
****, I just realised neither of those work. I'm precognitive as well... 
|
|

02-02-2005, 03:44 PM
|
 |
MetaCenturion
Retired Moderator * Guru *
|
|
Join Date: Aug 2001
Location: California, USA
Posts: 16,583
|
|
You forgot to add option explicit  . Remember it's always better to be a codaholic with good practices  .
|
|

02-02-2005, 08:27 PM
|
 |
Contributor
|
|
Join Date: Dec 2003
Location: Mi
Posts: 654
|
|
LOL @ Iceplug. 
|
|

02-03-2005, 01:50 AM
|
|
Junior Contributor
|
|
Join Date: Apr 2004
Location: 's-Gravenpolder, NL
Posts: 389
|
|
Quote:
|
You forgot to add option explicit
|
Problem is that in a lot of cases the help files are not very clear about what parts are properties and what parts are objects. This results in difficulties with defining variable names, because I don't know which names are already used by the application itself.
Now where is that dropdown menu when I type "ThisGirlfriend." ?
I think there are some bugs in this program. Part of the user interface changes color sometimes while I didn't do anything!
|
__________________
"Accept what you can not change and change what you can not accept" - Me
"Normal is the average of all oddities" - Me
"Don't re-invent the wheel!" - My dad
Please enclose your code in [vb] and [/vb] tags
|

02-03-2005, 05:05 PM
|
 |
Centurion
|
|
Join Date: Oct 2003
Location: Bellingham, MA
Posts: 178
|
|
|
I find that amusing.
*laughs*
O.o
You should sell that, its a good idea.
~~ Joe the "a little preoccupied trying to solve a evil math problem. I need to get a chalkboard sooo badly, can't concentrate on anything else, brain-overloading" Nerd.
|
__________________
Hail Banjo! God of Puppets!
Hail him! Oh ye People of the Earth!
Lest he zap you with his allmighty Banjo of Deathliness!
|

02-04-2005, 05:11 AM
|
|
Junior Contributor
|
|
Join Date: Apr 2004
Location: 's-Gravenpolder, NL
Posts: 389
|
|
|
To get back to topic, I'm thinking of two reasons:
1. To help some people here.
2. It's better than watching tv.
Two others:
3. To start this thread.
4. To put a smile on someones face, because of my (or anyone else's) strange relationship with work-related topics (and because a non-coding partner will never understand why or what you are doing).
Anyone else?
|
__________________
"Accept what you can not change and change what you can not accept" - Me
"Normal is the average of all oddities" - Me
"Don't re-invent the wheel!" - My dad
Please enclose your code in [vb] and [/vb] tags
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|
|
|
 |
|