Information générale
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Oops,
The description field should be C(50).
Gavin...
>Hi All,
>
> I've come across a very strange problem with SET ORDER TO in VFP6.0. Can someone try the following step of events and see if they encounter the problem:
>
>CREATE DATABASE thisisatest
>CREATE TABLE jobfunctions ( jobfunctionid N(10), description N(50) )
>
>BROWSE the table and enter these three records
>
>1,Z
>2,G
>3,A
>
>Type SET in the command window, then click PROPERTIES, MODIFY, then click on the index column in the Fields Tab and set both fields to have ascending indexes. Click OK, OK and close the SET window.
>
>Now type SET ORDER TO jobfunctionid. You'll notice that the order is now set to the DESCRIPTION index. I know that index names can only be 10 characters in length so shouldn't setting the order to jobfunctionid cause an error because jobfunctionid is not an index? Am I going crazy here? I've just spent about 2 hours trying to find why a Grid on form is displaying in the wrong order.
>
>Thanks,
>Gavin...
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement