Well, we both proved that the old statement "there are many ways to skin a fox" is very true!!

Take care

Rafael Copquin

El 12/12/2013 10:12, Thierry Nivelet escribió:
You could do something similar ...

DEFINE CLASS BUTTONMAKER AS COMMANDGROUP

* -------------------------------
PROCEDURE INIT
Lparameters pnButtQy,pcCaptions,pnTop,pnLeft,pcCommands

<same as you did>

* -------------------------------
Procedure Click

cComm = GetWordNum (;
    this.cCommand;
  , m.this.Value; && holds the # of button clicked
  , [,];
  )
&cComm

Thierry Nivelet
FoxInCloud
Give your VFP app a second life in the cloud
http://foxincloud.com/

Le 12/12/13 13:34, Rafael Copquin a écrit :
However, you have to hard code the commands that each click event trigger, in your example, 9, with a do case construct


[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to