Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Programmatically Setting Grid Column Dynamic Backcolor
Message
De
02/09/2005 14:56:09
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01046179
Message ID:
01046372
Vues:
10
Hi Sergey,
I am now trying to dynamically set the status by scanning an array that contains a status and corresponding backcolor value. It returns the value correctly when I manually do it but when I compile I receive the error "Unable to find Unknown _VSTATUS" but I have the statement 'EXTERNAL ARRAY _vstatus' in the method:
LPARAMETERS qcvalue

EXTERNAL ARRAY _vstatus

IF TYPE('qcvalue')<>"C" .or. EMPTY(qcvalue)
	RETURN "RGB(255,255,255)"
ENDIF

lccolor = IIF(ASCAN(_vstatus,qcvalue)>0,_vstatus(ASCAN(_vstatus,qcvalue)+1),RGB(255,255,255)) 

RETURN lccolor
Any ideas why it doesn't see it? The array _vstatus is public and visible throughout the app so during runtime it will exist, don't know why the builder doesn't like it.
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform