Information générale
Catégorie:
Codage, syntaxe et commandes
It should be. Test for your self and see. I never tested it. In the same time, if you don't have a large number of macrosubstitutions, it doesn't matter.
Vlad
>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
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement