Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Batch dynamic
Message
De
27/11/2005 12:24:22
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
27/11/2005 09:25:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01072256
Message ID:
01072273
Vues:
14
This message has been marked as the solution to the initial question of the thread.
>Hi all
>Is someone can help me doing the following code in 1 or 2 lines:
thisform.grid3.column2.dynamicforecolor= [IIF(alltrim(mycursor.c1)<>'AAA',rgb(255,0,0),RGB(0,0,0))]
>thisform.grid3.column3.dynamicforecolor= [IIF(alltrim(mycursor.c2)<>'AAA',rgb(255,0,0),RGB(0,0,0))]
>thisform.grid3.column4.dynamicforecolor= [IIF(alltrim(mycursor.c3)<>'AAA',rgb(255,0,0),RGB(0,0,0))]
>thisform.grid3.column5.dynamicforecolor= [IIF(alltrim(mycursor.c4)<>'AAA',rgb(255,0,0),RGB(0,0,0))]
>thisform.grid3.column6.dynamicforecolor= [IIF(alltrim(mycursor.c5)<>'AAA',rgb(255,0,0),RGB(0,0,0))]
>thisform.grid3.column7.dynamicforecolor= [IIF(alltrim(mycursor.c6)<>'AAA',rgb(255,0,0),RGB(0,0,0))]
>thisform.grid3.column8.dynamicforecolor= [IIF(alltrim(mycursor.c7)<>'AAA',rgb(255,0,0),RGB(0,0,0))]
>thisform.grid3.column9.dynamicforecolor= [IIF(alltrim(mycursor.c8)<>'AAA',rgb(255,0,0),RGB(0,0,0))]
>thisform.grid3.column10.dynamicforecolor= [IIF(alltrim(mycursor.c9)<>'AAA',rgb(255,0,0),RGB(0,0,0))]
>thisform.grid3.column11.dynamicforecolor= [IIF(alltrim(mycursor.c10)<>'AAA',rgb(255,0,0),RGB(0,0,0))]
>thisform.grid3.column12.dynamicforecolor= [IIF(alltrim(mycursor.c11)<>'AAA',rgb(255,0,0),RGB(0,0,0))]
>thisform.grid3.column13.dynamicforecolor= [IIF(alltrim(mycursor.c12)<>'AAA',rgb(255,0,0),RGB(0,0,0))]
>Thank's
for i=2 to 13
   thisform.grid3.columns[i].dynamicbackcolor=;
      [IIF(alltrim(mycursor.c]+alltrim(transform(i-1))+[)<>'AAA',255,0)]
endfor
Removed the RGB calls and inserted their results instead. Assumed that your columnorder is untouched for each column - or else the .columns[i] wouldn't be correct for the moved columns.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform