| View previous topic :: View next topic |
| Author |
Message |
meldawn Newbie

Joined: 19 Sep 2008 Posts: 2
|
Posted: Fri Sep 19, 2008 3:12 pm Post subject: [SOLVED] First post: I need some help getting started |
|
|
I have been cruising the internet for any script that will allow a beginner, to base and macros, get any kind of an idea where to start. I could not find one. I did find a bunch of "I would not suggest" comments.
That said, I have one "simple" question to ask that, I hope, will give my intellectual ball rolling.
I have a form. Let's call it [Form1]. On that form I have a button, call it [Button1]. I also have a text box, call it [George]... I hate to be completely predictable.
Now, I want to click [Button1] and have [George] say Hello World!.
Can someone help me get started here? Seems like a simple little macro to write. Please correct me if i am totally false in this assumption. _________________ Meldawn
Last edited by meldawn on Mon Sep 22, 2008 10:10 am; edited 2 times in total |
|
| Back to top |
|
 |
SilverCapo OOo Enthusiast


Joined: 22 May 2006 Posts: 102 Location: UK
|
|
| Back to top |
|
 |
QuazzieEvil Super User

Joined: 17 Jan 2007 Posts: 599 Location: Houston, TX
|
|
| Back to top |
|
 |
JohnV Administrator

Joined: 07 Mar 2003 Posts: 8995 Location: Lexinton, Kentucky, USA
|
|
| Back to top |
|
 |
meldawn Newbie

Joined: 19 Sep 2008 Posts: 2
|
Posted: Mon Sep 22, 2008 10:36 am Post subject: |
|
|
All of you rock! I used QuazzieEvil's FormsAndDialogs pdf to figure this out. http://www.geocities.com/rbenitez22/OOo/FormsAndDialogs.pdf
Here is answer to my question. I hope this helps to get more people started.
| Code: |
Sub Main (Event As Object)
'xray thisComponent
Dim Form As Object
Dim george As Object
Form=Event.Source.Model.Parent
george=Form.GetByName("george")
george.Text="hello world"
End Sub |
Thank you all!! _________________ Meldawn |
|
| Back to top |
|
 |
|