Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Show date
Message
From
03/05/2005 06:28:29
Alfred Roa
Ebs Accounting Software Solutions
Cagayan de Oro City, Philippines
 
 
To
27/04/2005 02:40:28
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 7
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01008726
Message ID:
01010417
Views:
21
Because, you are trying to concatenate a value having different data types, (1) cmonth() function - date (2) val(year()) function - Val- is numerical function, while, year - is a date function. This will give you a operator/operand type mismatch error.

var1 = cmonth(date())
var2 = year(date())

n = var1+' '+alltrim(str(var2))

n = May 2005
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform