Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
The better code
Message
De
27/04/2013 05:37:01
 
 
À
27/04/2013 04:45:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
01572049
Message ID:
01572059
Vues:
65
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform