Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Efficient coding problem
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00442342
Message ID:
00443437
Views:
7
Hi Nadya,

Since your fields have such a "name rule", you could create 1 procedure for all.
Imagine:

DO myRoutine WITH "Pur"


MyRoutine could be:

PARAMETERS myPar
myField1 = "Unit_" + myPar
myField2 = "Price_" + myPar
myInstr = "Select " + myField1 + ", " + myField2 + " from myTable"
...


Hope it helps.

Nice to see you.

Cheers,

Ricardo
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform