Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SET ORDER TO gives wierd result
Message
 
À
07/09/2000 00:57:42
Gavin Reid
L & M Marketing Pty Ltd
Frenchs Forest, Australie
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00413322
Message ID:
00413326
Vues:
16
Hi Gavin,

The problem is that JobFunctionID evaluates to 1, so essentially, you're issuing a SET ORDER TO 1.

If you type
GO 3
SET ORDER TO jobfunctionid
You'll get the expected error message.

Cheers,

Andrew





>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...


If we were to introduce Visual FoxBase+, would we be able to work from the dotNet Prompt?


From Top 22 Developer Responses to defects in Software
2. "It’s not a bug, it’s a feature."
1. "I thought I fixed that."


All my FoxTalk and other articles are available on my web site.


Unless specifically identified otherwise, anthing posted here is purely my opinion and may or may not reflect the policies or practices of Microsoft.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform