Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DynamicBackColor problem
Message
From
08/03/2001 23:28:15
Gavin Reid
L & M Marketing Pty Ltd
Frenchs Forest, Australia
 
 
To
08/03/2001 22:17:39
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00483390
Message ID:
00483410
Views:
27
Hi Doug,

The reason you're getting 'Data type is invalid for this property' is because the colour values need to be in quotes.

Try:
Column1.DynamicBackColor = IIF(parent_itm = 'Y','13565902','16777215')
Gavin...

>Hi,
>
>I have a problem when re-defining a grid from a method of a form. The DynamicBackColor causes an error. The code (part only) for the grid redefinition is...
>
>
>.Column1.FONTSIZE = 8
>.Column1.CONTROLSOURCE = "vInventory.itemno"
>.Column1.DynamicBackColor = IIF(parent_itm = 'Y',13565902,16777215)
>.Column1.WIDTH = 125
>
>
>...the dynamicbackcolor value works OK only for the original grid definition on form show.
>
>Error...
>
>PROCEDURE..: FRMINVENTORY.BLDGRID6
>LINE NUMBER: 21
>DESCRIPTION: Data type is invalid for this property.
>CODE       : .Column1.DynamicBackColor = IIF(parent_itm='Y',13565902
>ACTIVE DBF.: VINVENTORY
>ACTIVE NDX.:
>ERROR NO...: 1732
>
>
>I look forward to a resolution to this.
>
>Regards
>Doug Johnston
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform