QUOTE(rpcswizz @ 28 Apr, 2009 - 06:15 PM)

QUOTE(Core @ 28 Apr, 2009 - 06:10 PM)

First of all, your code contains redundant pieces - why do you assign 0 to
a if you later increment it by 1? Just set is as 1. Second, you rely on implicit conversion (from string to integer). If you need a variable that will contain intgers, use the
Integer data type to store the values. Then. just convert that to string.
To store the current caption of the label control (if i correctly understand the task) you can write the data to a file. There are a couple of tutorials here that can help you:
http://www.dreamincode.net/forums/showtopic29575.htmhttp://www.dreamincode.net/forums/showtopic97037.htmThanks for your compliment..
But i assign a = 0 so that when the user open for the first time the application the label will count the user as 1 that's why i increment it to 1.
but thanks for your help i will read the forums you gave.
i already check the forums you gave but that forum will save the data to a text file.. what i want to do is...
whenever the user open the application the caption on the label will increment as 1 so that i know how many users open the application.
the twist is i want to do this without using any database.. i want to change the default caption of the label that assign to properties.
QUOTE(Core @ 28 Apr, 2009 - 06:23 PM)

This piece of code is completely redundant:
CODE
if a = o then
a=0
a = a + 1
It can be like this:
CODE
If A = 0 Then
A =1
Since you are incrementing the value on every launch, you can just use this:
CODE
A = A + 1
And no verification is needed.
okay i got your point but how can i store the value in the label?