Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Columnorder equals zero?
Message
 
À
10/05/2006 15:46:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01120588
Message ID:
01120777
Vues:
33
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 --
>
>The program which encountered the problem does not change any property of the grid or any of its columns. It is a read-only program. There is nothing in this program that does anything but read some properties, including, among others, columnorder.
>
>This program encounters the problem (and dies because of it), but it is not the cause. Whatever the cause might be, it occurred somewhere else.
>
>The lines of code, cut and pasted directly from my code, are
For Each loColumn In loGrid.Objects
>	lnColIndex=loColumn.ColumnOrder
>	lcColName=ExcelCellName(lnColIndex)
>At this point, lnColIndex has a value of zero.
>
>I suspect that this is not very helpful, other than to learn that I've got a column with columnorder = 0, but there's certainly no indication how this could come to pass. However, as you noted, nobody else has piped up to say that they've ever encountered this. Sometimes it's nice to be unique, but not always.
>
>Thanks for your attempts on this, even though they did not bear fruit.
>
>Jim
>
>
>
>
>>James,
>>
>>If we want to understand how it may happen, and we have only one program that may help to reproduce this, then it is the only choice to use the program to get the additional information.
>>
>>You think that "the program which encountered it is not what caused it to happen", but I cannot see any evidence of this.
>>
>>In any case I see that we have a little bit different approach and logic in investigating this particular problem; and because of this (probably) we cannot work together on this particular issue.
>>
>>Let us do it separately and exchange opinions when and if we have new facts.
>>
>>>Yuri --
>>>
>>>I was trying to understand how it may happen as well. However, the program which encountered it is not what caused it to happen, so understanding that program is fruitless.
>>>
>>>\
>>>>James,
>>>>
>>>>You have already answered your own question. Yes, it is possible because you met the condition where you know exactly that columnorder is zero.
>>>>
>>>>Is it expected behavior? No, as far as I know.
>>>>Anybody met this? No, as far as I know.
>>>>Is it documented anywhere? No, as far as I know.
>>>>
>>>>Probably I go too far and out of scope of your post when trying to understand how it may happen.
>>>>Sorry.
>>>>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform