Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Columnorder equals zero?
Message
De
10/05/2006 16:37:16
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01120588
Message ID:
01120789
Vues:
22
OK, interesting to have you confirm his statement.

Why? When is there a difference? And what am I checking for in a column name?

>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 --
Jim Nelson
Newbury Park, CA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform