Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
General
»
[SOLVED] Is there an equivelant for 'me.method'
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
FPC 3.2.4-rc1 available
by
marcov
[
Today
at 10:47:38 am]
[SOLVED] Lazreport. Multi...
by
Petrus Vorster
[
Today
at 09:27:32 am]
exception external SIGSEG...
by
dseligo
[
Today
at 07:57:12 am]
Single / Double / Float s...
by
Khrys
[
Today
at 07:12:43 am]
Has anyone installed TeeB...
by
egsuh
[
Today
at 06:34:29 am]
Commerce website written ...
by
Handoko
[
Today
at 05:24:32 am]
Hashing pointers by using...
by
440bx
[
Today
at 01:15:38 am]
Introducing PasBuild 1.0....
by
dbannon
[December 11, 2025, 11:54:37 pm]
[SOLVED] Program compiles...
by
Schmitty2005
[December 11, 2025, 07:35:39 pm]
TIBDataSet "Closing"? on ...
by
RedOctober
[December 11, 2025, 05:00:04 pm]
So many "newbies"
by
gidesa
[December 11, 2025, 04:18:38 pm]
How can I make a safe app...
by
LeP
[December 11, 2025, 03:30:34 pm]
[SOLVED] Need help conver...
by
srvaldez
[December 11, 2025, 01:52:33 pm]
SpkToolbar custom update
by
wp
[December 11, 2025, 01:48:16 pm]
OS/2 Warp 4 problem with ...
by
Thaddy
[December 11, 2025, 01:35:10 pm]
Is FPGUI still active?
by
BSaidus
[December 11, 2025, 01:25:31 pm]
Bitmap into Paintbox
by
BubikolRamios
[December 11, 2025, 12:58:20 pm]
Notetask 1.1.0 - Free cro...
by
AlexanderT
[December 11, 2025, 12:11:14 pm]
Matching video to form
by
Pe3s
[December 11, 2025, 10:56:47 am]
Is Lazarus' Tool Palette ...
by
Ed78z
[December 11, 2025, 10:37:03 am]
[SOLVED] RXSwitch
by
Petrus Vorster
[December 11, 2025, 10:35:00 am]
fpsockets error: 10047
by
rvk
[December 11, 2025, 09:50:08 am]
Military Grade Directives
by
Thaddy
[December 11, 2025, 08:56:12 am]
Permutation of rows and c...
by
Zvoni
[December 11, 2025, 08:33:20 am]
Jacks or Better card game...
by
TBMan
[December 11, 2025, 03:12:03 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: [SOLVED] Is there an equivelant for 'me.method' (Read 3370 times)
georgelappies
New Member
Posts: 35
[SOLVED] Is there an equivelant for 'me.method'
«
on:
July 17, 2011, 10:41:11 am »
Hi all
Is there a fast way to reference the form in which unit you are at the moment like this:
Code:
[Select]
me.object.property := 'Hello';
i.e.
me.lblUser.caption := 'Welkom';
«
Last Edit: July 17, 2011, 02:34:09 pm by georgelappies
»
Logged
Imants
Full Member
Posts: 198
Re: Is there an equivelant for 'me.method'
«
Reply #1 on:
July 17, 2011, 10:47:28 am »
I tjink you are loking for Self
Self.object.property := 'Hello';
and
Self.lblUser.caption := 'Welkom'
Logged
BigChimp
Hero Member
Posts: 5740
Add to the wiki - it's free ;)
Re: Is there an equivelant for 'me.method'
«
Reply #2 on:
July 17, 2011, 10:47:54 am »
Goeiemore George,
Try the self keyword...
Groete,
BigChimp
Logged
Want quicker answers to your questions? Read
http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F
Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero
Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified
georgelappies
New Member
Posts: 35
Re: Is there an equivelant for 'me.method'
«
Reply #3 on:
July 17, 2011, 11:12:37 am »
Thanks all / Baie dankie almal.
the 'self' keyword is indeed the one
P.S. is there a way to mark a thread 'SOLVED'?
Logged
BigChimp
Hero Member
Posts: 5740
Add to the wiki - it's free ;)
Re: Is there an equivelant for 'me.method'
«
Reply #4 on:
July 17, 2011, 11:38:06 am »
To mark a thread solved, edit the thread or the first topic (can't remember which), you can add something like [SOLVED] in front...
Logged
Want quicker answers to your questions? Read
http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F
Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero
Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
General
»
[SOLVED] Is there an equivelant for 'me.method'
TinyPortal
© 2005-2018