堆栈帮助VBA [英] stack help for VBA

查看:147
本文介绍了堆栈帮助VBA的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在学习VBA


我必须编写非常基本的堆栈程序,它会弹出,推送项目。


i必须使用ms访问


i我是否需要创建一个模块来编写整个堆栈代码,然后将其与表单上的POP和PUSH按钮链接





i必须在PUSH和POP按钮上写单独的代码 - 子/功能等??


任何帮助?


也有人可以给我一个VBA工作堆栈程序的例子吗?


谢谢

I am learning VBA

I have to write very basic stack program that will pop, push items.

i have to use ms access

i am confused whether i have to create a single module to write whole stack code and then link it with POP and PUSH button on the form

Or

i have to write seperate code on PUSH and POP button - Sub / function etc??

Any help?

Also can someone give me an example of working stack program for VBA?

Thanks

推荐答案

您好,我会尝试解释您需要和想做的基本知识。


首先,您要创建一个类模块。此类模块将存储堆栈的所有信息。这意味着应该在此处编写任何属性和方法,如Pop或Push。


我假设你想在表单上使用这个Stack类,通过一个推送和弹出命令按钮,一个用于用户输入的文本框来显示它的功能。一种显示弹出内容的方法。要使用该类,必须声明并实例化Stack对象。示例:
Hi, I''ll try to explain the basics of what you need and want to do.

To start off you want to create a class module. This class module will store all the information for your stack. This means any properties and methods such as Pop or Push should be written here.

I''m assuming you want to use this Stack class on a form to show it''s functionality by way of a push and pop command buttons, a textbox for user input and some method of displaying what''s being popped. To use the class you must declare and instantiate a Stack object. Example:
展开 | 选择 | Wrap | 行号


您好


感谢您提供非常明确的解释。


我有几个问题:


1-如何从Form本身调用Stack对象方法。我的意思是我将拥有POP和PUSH按钮和文本字段。


如果我喜欢:Pop_Button_click

- 我如何调用我在模块中编写的方法?


2-另外,如果我没有安装MSDN,我会在哪里找到Stack对象的方法,变量?


非常感谢


>
Hi

Thank you for very clear explanation.

I have a few questions on it:

1- How can i call Stack object methods from the Form itself. I mean i will be having POP and PUSH button and Text Field.

If i do like : Pop_Button_click
-- how will i call the methods i have written in the module ?

2- Also, where will i find methods, variables of Stack object if i dont have MSDN installed?

Thanks a lot




您好,我将尝试解释您需要和想做的基本知识。


首先,您要创建一个类模块。此类模块将存储堆栈的所有信息。这意味着应该在此处编写任何属性和方法,如Pop或Push。


我假设你想在表单上使用这个Stack类,通过一个推送和弹出命令按钮,一个用于用户输入的文本框来显示它的功能。一种显示弹出内容的方法。要使用该类,必须声明并实例化Stack对象。示例:
Hi, I''ll try to explain the basics of what you need and want to do.

To start off you want to create a class module. This class module will store all the information for your stack. This means any properties and methods such as Pop or Push should be written here.

I''m assuming you want to use this Stack class on a form to show it''s functionality by way of a push and pop command buttons, a textbox for user input and some method of displaying what''s being popped. To use the class you must declare and instantiate a Stack object. Example:
展开 | 选择 | Wrap | 行号


1)以下是为类Stack调用Pop方法的示例。
1) The following is an example of calling the Pop method for the class Stack.
展开 | 选择 | Wrap | 行号


这篇关于堆栈帮助VBA的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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