Monday, October 10, 2005

VBForums.com - tell how many times app is run (resolved)

VBForums.com - tell how many times app is run (resolved): "Dim NumOfRuns as integer NumOfRuns = Val(Getsetting('APPNAME','DATA','RUNS','0')) NumOfRuns = NumOfRuns + 1 SaveSetting 'APPNAME', 'DATA', 'RUNS', NumOfRuns 'Check for too many... if NumOfRuns > 15 then Msgbox 'You have run this more than 15 times' 'etc.."

No comments: