Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Programmatically Setting Grid Column Dynamic Backcolor
Message
 
 
À
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:
01046374
Vues:
23
This message has been marked as a message which has helped to the initial question of the thread.
Sometime the Project Manager/Builder gets confused between arrays and UDFs. Adding following code kludge could eliminate the error
IF .F.
  DIMENSION _vstatus[1]
ENDIF
>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.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform