基本的VB / Access2003语法,如何找出它呢? [英] Basic VB/Access2003 syntax, how to find out about it?

查看:61
本文介绍了基本的VB / Access2003语法,如何找出它呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何以及在哪里可以找到关于VB / Access2003的基础知识

语法?


我死于羊毛C / C ++ / Java Linux / Unix程序员和我很难理解在VB / Access2003中访问

对象,控件等的程序格式。


特别是在哪里可以找到解释: -


动作,函数,方法,属性 - 我理解

概念,但我无法找到解释每个地方的地方

,在我的世界中,''方法''只是一个更现代的名称

''功能''。为什么它们都不同?


获取属性和对象值的语法,其中需要[]

以及在哪里使用''。''以及在哪里使用''!''。


哪里可以使用''我'及其含义。


等等。 !


这些似乎都不容易在Access帮助中找到。

-

Chris Green

How and where can one find out about the basics of VB/Access2003
syntax?

I am a died in the wool C/C++/Java Linux/Unix programmer and I am
finding it difficult to understand the program format for accessing
objects, controls, etc. in VB/Access2003.

In particular where will I find explanations of:-

Actions, Functions, Methods, Properties - I''m understand the
concepts but I can''t find anywhere that explains where each is
used, in my world a ''method'' is simply a more modern name for a
''function''. Why are they all different?

The syntax for getting values of Properties and Objects, where []
are needed and where to use ''.'' and where to use ''!''.

Where one can use ''me'' and what it means.

Etc.!

None of this seems to be particularly easy to find in the Access help.
--
Chris Green

推荐答案

us **** @ isbd .co.uk >在消息新闻中写道:44301b92.0@entanet ...
us****@isbd.co.uk> wrote in message news:44301b92.0@entanet...
如何以及在哪里可以找到关于VB / Access2003
语法的基础知识?
How and where can one find out about the basics of VB/Access2003
syntax?




访问2003帮助分为两部分..


#1部分 - 用户部分


这是称为ms-access的基本产品。如何添加记录,如何
移动...如何打印报告。由于许多人使用ms-access WITHOUT

编写任何代码。这是基本产品。


因此,如果你启动ms-access,然后去帮助 - > Microsoft访问帮助。这个

是一般的帮助。 (第1部分)。


#2部分 - 程序员部分。


但是,如果你进入代码IDE,那么你将收到VB帮助。


所以,在你的应用程序中,点击ctrl-g(或alt-f11)


现在去帮助 - > ;微软视觉基础帮助。


注意清单列表,所有方法,属性......事件,

函数列表都非常好用分组。还有一个JET sql参考,

和其他一些好东西....


请注意,ms-access使用SAME编码语法为VB6,ms-access中的学习

曲线比VB6的STEEPER高。这是因为ms-access中的对象模型要比VB6中的模型复杂得多。


例如,虽然大多数都会使用flexgrid,或者一个listview activeX控件

在大多数语言中,如果你看看下面的屏幕截图,你可以

在ms-access中做这个本机而不必诉诸于activeX控制..

http:/ /www.members.shaw.ca/AlbertKal...icles/Grid.htm

代码示例的最佳网站,几乎每个编码任务你都可以

每个需求都可以在这里找到....做一个浏览
http ://www.mvps.org/access/


请注意表单,报告和报告。在左侧等...他们都有大量的VBA

代码示例....

-

Albert D. Kallal (访问MVP)

加拿大艾伯塔省埃德蒙顿
pl ***************** @ msn.com
http://www.members.shaw.ca/AlbertKallal




The access 2003 help is split into two parts..

#1 part - User part

This is the basic product called ms-access. How to add a record, how to
move...how to print a report. Since MANY people use ms-access WITHOUT
writing any code. This is the basic product.

So, if you launch ms-access, and then go help->Microsoft access help. This
is the general help. (part#1).

#2 part - programmers part.

However, if you flip into the code IDE, then you will receive VB help.

So, while in your application, hit ctrl-g (or alt-f11)

Now go help->Microsoft visual basic help.

Note the list nice list, and all of the methods, properties...events,
function list is all VERY nicely grouped. There is also a JET sql reference,
and a few other goodies....

Do note that while ms-access use the SAME coding syntax as VB6, the learning
curve in ms-access is STEEPER then that of VB6. This is because the objects
models in ms-access are far more complex that those in VB6.

For example, while most would use a flexgrid, or a listview activeX control
in most languages, if you take a look at the following screen shots, you can
do this native in ms-access without having to resort to activeX control..

http://www.members.shaw.ca/AlbertKal...icles/Grid.htm
The best site for code examples, and virtually every coding task you might
every need can be found here....do take a browse
http://www.mvps.org/access/

Note the "forms", "reports" etc on the left side...they all have tons of VBA
code examples....
--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pl*****************@msn.com
http://www.members.shaw.ca/AlbertKallal



打开一个模块。

点击对象浏览器(一个黄色的盒子,上面有漂浮的东西

,或按f2)。

所有将向你透露。

好​​吧,不是全部;右键单击其中一个窗口;选择显示

隐藏会员;现在所有人都会向你透露。


帮助文件大多只是垃圾;其中很大一部分是错误的,而其余的效率低下和/或荒唐可笑。信任它就像你生命中重要的女人一样。

Open a module.
Click on the object browser (a yellow box with floating othingmes
above, or press f2).
All will be revealed unto you.
Well, not quite all; right click in one of the windows; choose "Show
Hidden Members"; now all will be revealed unto you.

The help file is mostly just crap; a high percentage of it is wrong and
the rest is inefficient and/or ludicrous. Trust it as much as you would
the significant woman in your life.


:〜)''染成羊毛''


染<>死


:〜)

:~) ''dyed in the wool''

dye<>die

:~)

行动,功能,方法,属性
......为什么它们都不同?


这些都不是基本的BASIC概念 - 它们已经全部用于服务市场时尚。对于任何流行趋势来说,当看到

回顾时,它们看起来有点奇怪。

获取属性和对象值的语法,哪里需要[]
以及在哪里使用''。''以及在哪里使用''!''。


[]用于名称中有空格的地方。


..适用于酒店。

!是收藏的成员!


''我''是你正在编码的表格对象。在表单对象中编写代码时,可以使用

。这是隐含的,

所以它永远不需要。在Access中,为了清晰起见,通常使用

,因为通常记录集字段

对象与表单上的控件具有相同的名称。


(大卫)


< us **** @ isbd.co.uk>在消息新闻中写道:44301b92.0@entanet ...如何以及在哪里可以找到关于VB / Access2003语法的基础知识?

我死于羊毛C / C ++ / Java Linux / Unix程序员和我发现很难理解在VB / Access2003中访问
对象,控件等的程序格式。

特别是在哪里我会找到解释: -

动作,功能,方法,属性 - 我理解
概念,但我无法找到解释每个概念的地方。 >使用,在我的世界中,''方法''只是一个更现代的名称,用于
''功能''。为什么它们都不同?

获取属性和对象值的语法,需要[]
以及在哪里使用''。''以及在哪里使用''!' '。

哪里可以使用''我'及其含义。

等等!

这些似乎都不是特别的在Access帮助中很容易找到。

-
Chris Green
Actions, Functions, Methods, Properties
... Why are they all different?
None of those are fundamental BASIC concepts - they
have all been tacked on to serve market fashions. As
with any fashion trend, they look a bit strange when
viewed in retrospect.
The syntax for getting values of Properties and Objects, where []
are needed and where to use ''.'' and where to use ''!''.
[] is used when you have a name with a space in it.

.. is for properties.
! is for members of collections!

''me'' is the form object you are coding. you can use
it when you write code in a form object. It is implicit,
so it is never required. In Access, it is often used
for clarity, because there are often recordset field
objects that have the same names as controls on a form.

(david)

<us****@isbd.co.uk> wrote in message news:44301b92.0@entanet... How and where can one find out about the basics of VB/Access2003
syntax?

I am a died in the wool C/C++/Java Linux/Unix programmer and I am
finding it difficult to understand the program format for accessing
objects, controls, etc. in VB/Access2003.

In particular where will I find explanations of:-

Actions, Functions, Methods, Properties - I''m understand the
concepts but I can''t find anywhere that explains where each is
used, in my world a ''method'' is simply a more modern name for a
''function''. Why are they all different?

The syntax for getting values of Properties and Objects, where []
are needed and where to use ''.'' and where to use ''!''.

Where one can use ''me'' and what it means.

Etc.!

None of this seems to be particularly easy to find in the Access help.
--
Chris Green



这篇关于基本的VB / Access2003语法,如何找出它呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆