BUTTON question

BUTTON question

Postby Jeff Barnes » Fri Mar 24, 2006 12:30 am

Hi Everybody,

I am trying (without success) to manipulate a button.

I want to have a counter on the button and update it every time it is pressed.

This is an example:

@ 1,1 BUTTON oBtnLap PROMPT "LAP + ("+alltrim(str(nLapCounter))+")" SIZE 50,25 of oDlg1 FONT oFontSmall UPDATE Action (nLapCounter++, TONE(440,1),oDlg1:Update())

Can someone please help.

Thanks,
Jeff
User avatar
Jeff Barnes
 
Posts: 929
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada

Postby RAMESHBABU » Fri Mar 24, 2006 7:32 am

Mr.Jeff

Here is the solution.


@ 1,1 BUTTON oBtnLap PROMPT "LAP + ("+alltrim(str(nLapCounter))+")" SIZE 50,25 of oDlg1 FONT oFontSmall UPDATE Action (nLapCounter++, TONE(440,1),oBtnLap:SetText("LAP ("+alltrim(str(nCounter))+")")oBtnLap:Refresh())

Regards,

- Ramesh Babu P
User avatar
RAMESHBABU
 
Posts: 624
Joined: Fri Oct 21, 2005 5:54 am
Location: Secunderabad (T.S), India

Postby Jeff Barnes » Fri Mar 24, 2006 3:42 pm

Thanks Ramesh

Works perfectly :)


Jeff
User avatar
Jeff Barnes
 
Posts: 929
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 90 guests