Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need advice in design
Message
From
21/03/2000 22:47:19
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00348171
Message ID:
00348711
Views:
22
>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?
>

Abandon the idea; if you really need discrete editable procedures, make them separate files so that you don't accidentally duplicate a function name in the file or risk every piece of code every time you edit a procedure. This is an incredibly poor approach to managing code.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform