If an abbreviation will do - this works:

SUBSTR('JanFebMarAprMayJunJulAugSepOctNovDec', 1 + (MonthAsAnumber - 1) * 
3, 3)
If the month expression is character you need to convert it with VAL() - 
Joe Yoder

On Wednesday, March 18, 2009  7:37 PM, Sytze de Boer wrote:
>
>Date: Thu, 19 Mar 2009 12:37:32 +1300
>From: Sytze de Boer
>To: profoxt...@leafe.com
>cc:
>Subject: VFP9-convert a number to month
>
>Hi
>
>I know how to do cmonth(date()) and various derivatives thereof
>How do convert a number to a month ?
>
>This is be done in a select statement where 1 field is (say 200804 or
>200805)
>The numbers are consistent yyyy mm, and I'm only concerned with the month
>
>I appreciate all pointers
>
>--
>Regards
>Sytze de Boer
>Kiss Systems
>Hamilton, NZ
>Ph: 64-7-8391670, Mob:021 937611,
>www.kiss.co.nz
>
>
>--- StripMime Report -- processed MIME parts ---
>multipart/alternative
>  text/plain (text body -- kept)
>  text/html
>---
>
[excessive quoting removed by server]

_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/f5.dc.10174.13591...@cm-1.zoominternet.net
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to