Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with timer control
Message
From
05/04/2004 03:39:50
 
 
To
05/04/2004 02:43:12
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00892170
Message ID:
00892174
Views:
15
THISFORM.TEXT15.VALUE= PADL( INT(( AJK29 % 86400 ) / 3600 ), 2, '0' );
+SPACE(1)+ALLTRIM('-')+SPACE(1) ;
+ PADL( INT(( AJK29 % 3600 ) / 60 ), 2, '0')
When you write into the textbox value,
VFP reset the TextBox SelStart property.

you can ( with variable lenght text, the solution is more complex ) try this:
WITH M.THISFORM.TEXT15
   selStart = .SelStart
   .value = PADL( INT(( AJK29 % 86400 ) / 3600 ), 2, '0' );
+' - ' + PADL( INT(( AJK29 % 3600 ) / 60 ), 2, '0')
   .SelStart = m.selStart
ENDWITH
Previous
Reply
Map
View

Click here to load this message in the networking platform