Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
The better code
Message
De
27/04/2013 07:18:35
 
 
À
27/04/2013 05:37:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
01572049
Message ID:
01572061
Vues:
71
With your code you also lose rushmore optimizing!

>I'd rather reccommend
>
>select * from stock_file where cstockid == padr(stock_id,len(cstockid)) into cursor cstock
>
>>Just a side note. Why do you use alltrim? It gives zero benefit, and your query won't be optimized. Instead use
>>
>>select * from stock_file where cstockid == stock_id into cursor cstock
>>>I want the user to pick the stock id:
>>>
>>>
>>>stock_id = inputbox('Stock ID','Input Stock ID', space(20))
>>>select * from stock_file where alltrim(cstockid)=alltrim(stock_id) into cursor cstock
>>>
>>>select cstock
>>>browse normal
>>>
>>>?cstock.cstockid
>>>
>>>
>>>how to make it looks better in the program?
>>>which controls can I use to replace browse normal?
>>>
>>>thanks for the advice
>>>
>>>Jerry
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform