Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Command Coding in Class Method
Message
From
11/10/1997 23:13:41
Shihchau Tai
Apic Systems Pte Ltd
Singapore, Singapore
 
 
To
11/10/1997 12:26:17
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00054146
Message ID:
00054206
Views:
32
Is this faster?

>Try
>
>_VFP.DoCmd(ccommand)
>
>Vlad
>
>>ccommand = 'SELECT *,RECNO() AS flagrecno FROM ' + THIS.recordsource + ;
>> ' WHERE ' + THIS.cflagfield + ' = .T. INTO CURSOR mycursor'
>>&ccommand
>>
>>SCAN
>> i = i+1
>> GOTO (mycursor.flagrecno) IN (THIS.recordsource)
>> ccommand = 'REPLACE ' + THIS.cseqfield + ' WITH nseq + i IN ' + THIS.recordsource
>> &ccommand
>>ENDSCAN
>>
>>Above are two sections of codes I have in my methods. I am wondering if there is a way I can avoid using macro substitution.
>>
>>Thanks in advance.
>>
>>
>>Tai
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform