Re: Problem with .properties("...")
- From: Steve Richfie1d <Steve@xxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 09 Aug 2005 21:04:04 -0600
Bob,
"Steve Richfie1d" <Steve@xxxxxxxxxxxxxxxxxxxxx> wrote in message news:3lsvguF14ck8aU1@xxxxxxxxxxxxxx
XlateControlProperty Frm, Frm.Properties("Caption")
This logic worked GREAT in Access 97, but seems to be falling on its face in VB5.
Any ideas what is going haywire here?
VB and VBA are not the same especially when it comes to forms and controls. VB controls don't support a Propeties collection like that.
But, when I highlight "Properties" in the statement above, VB brings up the DAO page on Properties just like I was in Access!
I think that you are saying that there are Access Form and Control Properties that do NOT carry over to VB, and then there are DAO Properties that DO carry over to VB. Working with an object variable where VB doesn't know what the object is until execution time, I get the nastygram because it is NOT a DAO Property. Right?
This is going to TRASH much of by otherwise simplistic code to switch between languages on-the-fly. There is a list box on the main form where if you select a different language, everything changes languages on all forms, etc. This is accomplished by going through all of the relevant properties of all of the forms - something that will be MUCH more difficult without the VB Properties property.
Note that it is easy to get the VALUE of a VB property - the challenge is getting that property as an object that can be passed around, modified, etc.
Any ideas on how to do this or something like it in VB?
Thanks for the help.
Steve Richfie1d
.
- Follow-Ups:
- Re: Problem with .properties("...")
- From: Bob Butler
- Re: Problem with .properties("...")
- References:
- Problem with .properties("...")
- From: Steve Richfie1d
- Re: Problem with .properties("...")
- From: Bob Butler
- Problem with .properties("...")
- Prev by Date: Re: Problem with .properties("...")
- Next by Date: Re: Problem with .properties("...")
- Previous by thread: Re: Problem with .properties("...")
- Next by thread: Re: Problem with .properties("...")
- Index(es):
Relevant Pages
|