Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Columnorder equals zero?
Message
 
 
À
10/05/2006 16:05:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01120588
Message ID:
01120786
Vues:
24
In fact, Yuri is absolutely right. You should use loGrid.Columns instead.

Check for column name before trying it's columnorder...

>Yuri --
>
>loGrig.objects is the list of all objects in a container, which, for a grid, is the same as loGrid.columns.
>
>Note that the statement which follows,
lnColIndex = loColumn.controlsource
, would fail if loColumn were not a column object, as only column objects have that property.
>
>I'll make that change, if you think that's a step in the right direction.
>
>However, I have no idea when it might be that this error would occur again -- might be hours, might be weeks. Supposing, for an instant, that this were not the solution. Do you have any other suggestions?
>
>>James,
>>
>>I do not know what are loGrid.Objects and I am not quite sure that all of them are columns. I would use:
>>
>>
>>FOR EACH locolumn IN thisform.Grid1.COLUMNS
>>...
>>
>>
>>
>>
>>
>>>Yuri --
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform