Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid Checkbox Adding Programatically
Message
 
À
14/05/2003 09:29:49
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00788149
Message ID:
00788164
Vues:
23
Thanks Cetin see reply to Marcie

>>I know how to do this in design mode I want to do all in code here.
>>
>>Why does this code error:
>>
>>VFP 7.0 SP1
>>Errors at .NEWOBJECT('ChkSelect',.....
>>Error: "Error with chkSelect - Value : Data type mismatch."
>>
>>This is called during init of form.
>>Grid column count is set to -1 in design mode.
>>Grid Record Source is set to (none).
>>The cursor csDateList 1ST Column is a Logical (should not matter not bound yet)
>>BaseCtrls.ChkBase.VALUE is defaulted to .F.
>>
>>
>>
>>WITH THISFORM
>>   SELECT csDateList
>>
>>   WITH .grdChangeDates
>>      .COLUMNCOUNT  = 6
>>      .DELETEMARK   = .F.
>>      .SCROLLBARS   = 2
>>      .HIGHLIGHT    = .F.
>>      .HIGHLIGHTROW = .F.
>>
>>      WITH .Column1
>>         .NEWOBJECT('chkSelect', 'cchkBase', 'BaseCtrls')
>>
>>         .CURRENTCONTROL = 'chkSelect'
>>         .SPARSE         = .F.
>>         .CONTROLSOURCE  = 'csDateList.DateChgSel'
>>         .READONLY       = .F.
>>         .WIDTH          = 15
>>         .Header1.CAPTION = 'Code'
>>      ENDWITH
>>ENDWITH
>>
>
>Ron,
>What's datatype of csDateList.DateChgSel ? And if that's a type suiatable for a checkbox (num or logical) first set controlsource then add checkbox.
>Cetin
What ben makes tracks for what wil be. Words in the air pirnt foot steps on the groun for us to put our feet in to.

Riddley Walker
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform