Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

this.addgroup() 1

Status
Not open for further replies.

Rick C. Hodgin

Programmer
Oct 15, 2021
172
US
Concept:

Code:
* For any container object:
lo = this.AddGroup("input", this.txtDate, this.txtDesc, this.txtQty, this.txtAmt)

* Access as the returned object
lo.BackColor = RGB(255,255,128)
WAIT WINDOW "Pausing..."

* Or as the object off its parent, by name
this.input.BackColor = RGB(255,255,128)

It would not error when properties which do not exist on the group objects are attempted to be set. It would just skip that object.

It the "this.input.BackColor = RGB(255,255,128)" line would effectively do the equivalent of:

Code:
* The objects that would've been in the input group, it works on each one individually
this.txtDate.BackColor = RGB(255,255,128)
this.txtDesc.BackColor = RGB(255,255,128)
this.txtQty.BackColor  = RGB(255,255,128)
this.txtAmt.BackColor  = RGB(255,255,128)

--
Rick C. Hodgin
 
Andrew
Just use a different formatting to post your email address like somebody!at!somwhere.com that way the bots won't recognize it as a valid email address.



If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Thank you (both Mikes); That seems the best way.

Yes, it would be good if Tek-Tips provided such a facility; and for those who preferred not to receive such communications, there could perhaps be an option so that a subscriber could opt out of receiving private messages?
 
Andrew
Unlike some other foxpro sites, between TEK-TIPS and ENG-TIPS they have over 500 forums to manage, not sure if that option is workable.




If you want to get the best response to a question, please check out FAQ184-2483 first.
 
It's a one time feature implementation and since private messages are private, that won't even need moderation or monitoring of any kind. Even less so when users can opt out of it.

They might want to protect users against spam or fraud or viruses, too, but I don't see a reason the number of forums makes this hard to manage, it's merely a matter of the number of users. Web space used by this also doesn't add more pressure, as each thread also does. They could even advertise in the private message section and limit this or automatically delete anything older than X, as it's not a mail service, just a little PM system.

It could be based on posting, just limiting it to only be visible to the addressee. So it's not even a hard to implement feature once you already have a post message system by being a forum software.

Chriss
 
Actually, there is a way of contacting members privately. But I don't know if it "official".

The trick is to find an FAQ posted by the member that you wish to contact. You can do this by looking at the member's profile. At the bottom of the FAQ, click the link, "Send a Comment to <member's name> About This FAQ". This will open a window in which you can compose a message to the member. The message will go to the member's email address, and will include your own email address. It is then up to the member to decide whether to reply.

This method is quite safe. It is unlikely to be used by spammers, since each message would have to be sent individually. And it doesn't reveal the recipient's address unless he or she chooses to reply.

The obvious disadvantage is that it only works for members that have posted a FAQ.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top