Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Macro Expansion with REPLACE
Message
From
23/04/2002 17:22:00
 
 
To
23/04/2002 17:12:22
Donald Lowrey
Data Technology Corporation
Las Vegas, Nevada, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00648428
Message ID:
00648433
Views:
16
Because:

field = "xxx"
value = "zzz"
replace &field with value

works by me, i think you must replace:

lcfieldname = "field" + INT(VAL(lnCnt))

with:

lcfieldname = "field" + alltrim(str(INT(VAL(lnCnt))))

Also, make sure "fieldX" is character field.

Plamen Ivanov
MCSD .NET Early Achiever and MCAD .NET Charter Member (VB .NET/SQL Server 2000)
MCSD (VB 6.0/SQL Server 2000)

VB (.NET) - what other language do you need in the whole Universe?...

Previous
Reply
Map
View

Click here to load this message in the networking platform