Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using AS
Message
De
23/04/2003 09:27:18
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00780548
Message ID:
00780552
Vues:
5
Hi Chad,

That worked great!
And your signature just cracked me up. Thanks for the advice and a really good laugh.

Thanks again
Jim


>>I am using the view designer to create a view that parses the sales order number into various parts of a bill of matrerials. When I use the equation builder it forms this equation {fn SUBSTRING(Soitem.fpartno,4,3)}
>>I tried various forms of {fn SUBSTRING(Soitem.fpartno,4,3)} as "Carriage Type" and {fn SUBSTRING(Soitem.fpartno,4,3)}as CT and {fn SUBSTRING(Soitem.fpartno,4,3) as "Carriage Type"} But always get an error.
>
>Jim,
>
>First off, SUBSTRING() isn't a valid VFP function. SUBSTR() is. Secondly, I'm assuming you are using the braces and 'fn' to denote it is a function, right? Well, you don't need that. Thirdly, you won't be able to use field names with spaces (to my knowledge, but I've never tried it either). Try it this way:
>
SUBSTR(Soitem.fpartno, 4, 3) AS CT
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform