Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Programmatically Setting Grid Column Dynamic Backcolor
Message
 
 
To
02/09/2005 14:56:09
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01046179
Message ID:
01046374
Views:
29
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform