Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need advice in design
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00348171
Message ID:
00348707
Vues:
25
Barbara,

Honestly, I'm just preparing for the future application, so I haven't designed yet :) Today I tried Vlad's suggestion, it works, but I think, I better would use Edit box instead of MODI COMM.
As far as I understand, I should do the following:
1) editbox.value=filetostr('MyProcedure.prg')
2) lnPos=atc('MyFunction',editbox.value)
3) Scroll to this position - How can I do? Something with SelStart, but don't know exactly, how
4) Edit the code
only if code was modified (check this)
5) strtofile(alltrim(editbox.value),'MyProcedure.prg') ??? -
6) compile myProcedure


This is the algorithm, which I have in mind. What do you think? I'm not also know exactly about third step, could you help, please?

TIA


>Nadya,
>I didn't see Vlad's answer until I'd sent mine - they overlapped, I know. Is this a compiled program? Are you using MODIFY COMMAND or and edit box to edit the code?
>
>>Barbara,
>>
>> Paul Vlad suggested to use RANGE clause in MODIFY COMMAND. I tried, the result is similar to the procedure, you described. Perhaps, it's the better I can do here. I'm not completely satisfied, however, because Function MyFunction doesn't appear on the top of the window, even if the cursor seats on the Function.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform