Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Macro substitution
Message
From
27/12/2002 17:43:44
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00735756
Message ID:
00736209
Views:
27
>>>>
>>>>if lcOldTalk = "ON"
>>>>  set talk on
>>>>else
>>>>  set talk off
>>>>endif
>>>>
>>>>
>>>>If the saving / restoring is done frequently, it might be worthwhile to investigate which version is faster. (Is it the second version? I suppose so, but I am not sure in this case). Otherwise, I would prefer the single command.
>>>>
>>>>Hilmar.
>>>I needed to add:
>>>
>>>store 0 to totmt01,totmt02,totmt03,totmt04,totmt05,totmt06
>>>
>>>* We could
>>>npaymth=month(dpaydate)
>>>case npaymth=1
>>>     totmt01=totmt01+npaymnt
>>>case npaymth=2
>>>     totmt02=totmt02+npaymnt
>>>case npaymth=3
>>>     totmt03=totmt03+npaymnt
>>>case npaymth=4
>>>     totmt04=totmt04+npaymnt
>>>case npaymth=5
>>>     totmt05=totmt05+npaymnt
>>>case npaymth=6
>>>     totmt06=totmt06+npaymnt
>>>
>>>* or , we could
>>>lcpaymth="totmt"+substr(dtos(dpaydate),5,2)
>>>&lcpaymth=&lcpaymth+npaymnt
>>
>>Perfect example indeed.
>
>Not really. An array would be a proper solution in this case.

Yeah.. you're right indeed, Sergey. Okay, we'll remove this example. Sorry Terry! :)
Groet,
Peter de Valença

Constructive frustration is the breeding ground of genius.
If there’s no willingness to moderate for the sake of good debate, then I have no willingness to debate at all.
Let's develop superb standards that will end the holy wars.
"There are three types of people: Alphas and Betas", said the beta decisively.
If you find this message rude or offensive or stupid, please take a step away from the keyboard and try to think calmly about an eventual a possible alternative explanation of my message.
Previous
Reply
Map
View

Click here to load this message in the networking platform