LOCAL lcProgName, lnSelEnd, lnSelStart, lnResult, lnHandle LOCAL ARRAY laEnv [25] SET LIBRARY TO (HOME() + "FoxTools.fll") ADDITIVE * Get the whandle for the current window lnHandle = _WonTop() lnResult = _EdGetEnv( lnHandle, @laEnv ) IF ( lnResult = 0 ) ; OR ( laEnv[17] = 0 ) ; OR ( laEnv[25] = 0 ) RETURN ENDIF * Extract selected name from the editor window lnSelStart = laEnv[17] lnSelEnd = laEnv[18]-1 lcProgName = ALLTRIM(_EdGetStr( lnHandle, lnSelStart, lnSelEnd )) IF NOT EMPTY(lcProgName) ; AND FILE(DEFAULTEXT(lcProgName, "prg")) MODIFY COMMAND (lcProgName) NOWAIT ENDIF RETURN>Is there some simple way, when editing a PRG, to begin editing a PRG that is called there?
> bla-bla-bla > MySubroutine(params) > bla-bal-bla >>is there some way to begin editing 'MySubroutine' other than be copying and pasting it to the command window where I can do MODI COMM?