Antonio Manfredonio
|
| Posted: 12/30/2002, 7:46 AM |
|
Hi,
I have the following problem:
need to show a list with a variable number of record (a songs list), and I
need an incremental variable like that:
-----------------------
1. Song One
2. Song Two
3. Song etc. etc.
4.
-----------------------
and so on, of course ( the "track number" doesn't exist in database, then
I think to create a variable named "numtrack", display that in a grid then
increment numtrack+1 e display the next record ...
someone know how?
ps: php & mysql (but also asp & sqlserver)
Really thank to all!
|
|
|
 |
Dave Rexel
|
| Posted: 12/30/2002, 5:14 PM |
|
Hello
Row Counter in CCS :
Insert Label (Toolbox-Form-Label) where you need the number
Name it myLabel (just for example)
Add event BEFORE SHOW for this Label
Use code below (PHP but the logic is easy in any language)
//BEGIN CUSTOMCODE
global $myGridName;
global $myCounter;
if (empty($myCounter)) {
$myCounter = 1;
} else {
$myCounter++;
}
$myGridName->myLabel->SetValue($myCounter);
//END CUSTOMCODE
Should do it
Greetings
Dave
"Antonio Manfredonio" <fake-email@hotmail.com> wrote in message
news:auppok$lm2$1@news.codecharge.com...
> Hi,
>
> I have the following problem:
> need to show a list with a variable number of record (a songs list), and I
> need an incremental variable like that:
>
> -----------------------
> 1. Song One
> 2. Song Two
> 3. Song etc. etc.
> 4.
> -----------------------
>
>
> and so on, of course ( the "track number" doesn't exist in database,
then
> I think to create a variable named "numtrack", display that in a grid then
> increment numtrack+1 e display the next record ...
>
> someone know how?
>
> ps: php & mysql (but also asp & sqlserver)
>
> Really thank to all!
>
>
|
|
|
 |
Antonio Manfredonio
|
| Posted: 01/03/2003, 1:36 AM |
|
Really Thank You Dave! It Works Fine!
Have a nice new year!
"Dave Rexel" <therex_spamenot@hotmail.com> ha scritto nel messaggio
news:auqr28$ln0$1@news.codecharge.com...
> Hello
|
|
|
 |
|