Microsoft Access Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMicrosoft Access Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old August 25th, 2004, 07:48 PM
Mshine Mshine is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 2 Mshine User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Easy Question #1

I have programed with VB6 and done some light
work receintly with Access. This is going to sound REAL
stupid, but to tell you the truth, I have never really
had much trouble NOT knowing what it means.

In code I see references to Forms, Controls, and Form
& Control properties proceeded by "Me." as in
"Me!Form1.text" So I guess I would like to know what
the "Me. or Me!" part means, and what the "!" is that is
used sometime too?

Code seems to work with it, and without it, but I
have not been able to figure out exactly what it means.

Any clear explanation would be appreciated. thanks

Mike

Reply With Quote
  #2  
Old August 26th, 2004, 03:55 AM
ineuw ineuw is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 82 ineuw User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 30 m 28 sec
Reputation Power: 5
There is no clear delineation but in general, Me! is a direct explicit reference of a limited scope to data related object value and object properties.

Me. is the implicit object reference which encompasses Collections, Values, Properties, Methods and Events and the two reference methods overlap and duplicate

Explicit e.g:
x = Me!Textbox
x = Me!Textbox.Value

Implicit reference by name . . . .
x = Me.Controls("TextBox")
x = Me.Controls("TextBox").Value

Implicit reference by ordinal number . . .
x = Me.Controls(0)
x = Me.Controls(0).Value

All of the above mean the same and .Value is optional in most cases!

There is no clear delineation and my opinion is that the object design group at Microsoft were drugged by an overdose of spaghetti. This gets worse when one learns the history of the development of Access as Microsoft rushed to improve their original (and very poor) endeavour by buying up a multitude of companies. When programming for data tables, one is taken back in history, to dBase, Foxbase etc.

Reply With Quote
  #3  
Old August 26th, 2004, 02:48 PM
Mshine Mshine is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 2 Mshine User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy Doh?

Now yer talking over my head! haha

So are you saying it is necessary, or that it is more a cross platform compatability thing?
Where some developers, have just gotten used to using it, and for migrating their code
across different programming languages?

Like I mentioned, I am a beginner, almost more like a hobbiest, who tinkers, and learns
by example.

But thanks for trying anyways.. ;o)

Reply With Quote
  #4  
Old August 26th, 2004, 06:47 PM
ineuw ineuw is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 82 ineuw User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 30 m 28 sec
Reputation Power: 5
You're not the only one over your head. It took me quite awhile to get used to it. Microsft does emulate some features of other languages, even the built in function names, to lure developers from other platforms and thus make it look like as an easy conversion, but the code is not convertible. It is just lifted from other, earlier developments.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMicrosoft Access Development > Easy Question #1


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway