Index
2009-01-07 14:28Joe Yoder : What am I missing (newbee)
2009-01-07 14:52Jean MAURICE : Re: What am I missing (newbee)
2009-01-07 15:00lew1716@gmail.com: Re: What am I missing (newbee)
2009-01-07 15:44Christof Wollenhaupt : RE: What am I missing (newbee)
2009-01-07 15:57Joe Yoder : RE: What am I missing (newbee)
2009-01-08 00:28Jean MAURICE : Re: What am I missing (newbee)
2009-01-08 03:37Christof Wollenhaupt : RE: What am I missing (newbee)
Back to top
What am I missing (newbee)

Author: Joe Yoder

Posted: 2009-01-07 14:28:41   Link

I have a class with a container with a TextBox and an EditBox. =

=

The container has a method called AdjSize:

This.edit1.Height =3D this.edit1.Height + 50

=

The TextBox InteractiveChange:

IF '+' $ this.Value OR '-' $ this.Value

This.Parent.adjsize()

ENDIF

When I instantiate the control on a form and run the form keying either a=

"-" or "+" in the TextBox results in an error message: "Property ADJSIZE=

is not found."

Thanks in advance - Joe

--- StripMime Report -- processed MIME parts ---

multipart/alternative

text/plain (text body -- kept)

text/html

---

©2009 Joe Yoder
Back to top
Re: What am I missing (newbee)

Author: Jean MAURICE

Posted: 2009-01-07 14:52:39   Link

If you are using VFP9, you can right-click in your container and choose

'object list' : it will give you the right name and the right path to

the method.

I see a problem in your code : I don't know what you do elsewhere but if

you do not remove the '+' or '-' you will increase the size of your

editbox each time a character is typed. Try to use the keypress event

instead ....

--

Jean MAURICE

Grenoble - France - Europe

www.atoutfox.org

www.aedtf.org

©2009 Jean MAURICE
Back to top
Re: What am I missing (newbee)

Author: lew1716@gmail.com

Posted: 2009-01-07 15:00:18   Link

VGhlIG1ldGhvZCB5b3UgY3JlYXRlZCBpcw0KVGhpcy5wYXJlbnQuZWRpdDEuYWRqc2l6ZSgpDQpT

ZW50IGZyb20gbXkgVmVyaXpvbiBXaXJlbGVzcyBCbGFja0JlcnJ5DQoNCi0tLS0tT3JpZ2luYWwg

TWVzc2FnZS0tLS0tDQpGcm9tOiBKb2UgWW9kZXIgPEpvZUBXaGV5UG93ZXIuY29tP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WJzY3JpcHRpb24g

TWFpbnRlbmFuY2U6IGh0dHA6Ly9sZWFmZS5jb20vbWFpbG1hbi9saXN0aW5mby9wcm9mb3gNCk9U

LWZyZWUgdmVyc2lvbiBvZiB0aGlzIGxpc3Q6IGh0dHA6Ly9sZWFmZS5jb20vbWFpbG1hbi9saXN0

aW5mby9wcm9mb3h0ZWNoDQpTZWFyY2hhYmxlIEFyY2hpdmU6IGh0dHA6Ly9sZWFmZS5jb20vYXJj

aGl2ZXMvc2VhcmNoL3Byb2ZveA0KVGhpcyBtZXNzYWdlOiBodHRwOi8vbGVhZmUuY29tL2FyY2hp

dmVzL2J5TUlEL3Byb2ZveC8yOC5FMS4wMTcxOC40MTEwNTY5NEBjbS0yLnpvb21pbnRlcm5ldC5u

ZXQNCioqIEFsbCBwb3N0aW5ncywgdW5sZXNzIGV4cGxpY2l0bHkgc3RhdGVkIG90aGVyd2lzZSwg

YXJlIHRoZSBvcGluaW9ucyBvZiB0aGUgYXV0aG9yLCBhbmQgZG8gbm90IGNvbnN0aXR1dGUgbGVn

YWwgb3IgbWVkaWNhbCBhZHZpY2UuIFRoaXMgc3RhdGVtZW50IGlzIGFkZGVkIHRvIHRoZSBtZXNz

YWdlcyBmb3IgdGhvc2UgbGF3eWVycyB3aG8gYXJlIHRvbyBzdHVwaWQgdG8gc2VlIHRoZSBvYnZp

b3VzLg0KDQoNClJlcG9ydCBbT1RdIEFidXNlOiBodHRwOi8vbGVhZmUuY29tL3JlcG9ydEFidXNl

LzI4LkUxLjAxNzE4LjQxMTA1Njk0QGNtLTIuem9vbWludGVybmV0Lm5ldA0K

©2009 lew1716@gmail.com
Back to top
RE: What am I missing (newbee)

Author: Christof Wollenhaupt

Posted: 2009-01-07 15:44:03   Link

Hi Joe,

> When I instantiate the control on a form and run the form keying either a

"-" or "+" in the TextBox results in an error message: "Property ADJSIZE is

not found."

The method is protected. You need to make it public in order to call it from

the textbox.

--

Christof

©2009 Christof Wollenhaupt
Back to top
RE: What am I missing (newbee)

Author: Joe Yoder

Posted: 2009-01-07 15:57:40   Link

Excellant response - how did you know? (I just figured it out for myself =

before your Email came it!)

Thanks - Joe

On Wednesday, January 07, 2009 3:44 PM, Christof Wollenhaupt wrote:

>

>Date: Wed, 7 Jan 2009 21:44:03 +0100

>From: Christof Wollenhaupt

>To: profoxtech@leafe.com

>cc:

>Subject: RE: What am I missing (newbee)

>

>Hi Joe,

>

>> When I instantiate the control on a form and run the form keying either a

>"-" or "+" in the TextBox results in an error message: "Property ADJSIZE is

>not found."

>

>The method is protected. You need to make it public in order to call it=

from

>the textbox.

>

>--

>Christof

>

>

>

[excessive quoting removed by server]

©2009 Joe Yoder
Back to top
Re: What am I missing (newbee)

Author: Jean MAURICE

Posted: 2009-01-08 00:28:25   Link

>how did you know?

May I say that Christof is the best VFP specialist in the World ? At

least one of the best !!

--

Jean MAURICE

Grenoble - France - Europe

www.atoutfox.org

www.aedtf.org

©2009 Jean MAURICE
Back to top
RE: What am I missing (newbee)

Author: Christof Wollenhaupt

Posted: 2009-01-08 03:37:24   Link

Hi Joe,

> how did you know?

Experience is when you make mistakes before others do them. <g>

I've seen the error message before in my code for much the same reason. <s>

--

Christof

©2009 Christof Wollenhaupt