Information générale
Titre:
Modi comm (filename) from pad of system menu
I'd like to have a Pad "What's New" in Foxpro system menu which invokes the the command =show_whatsnew() upon selection
function show_whatsnew
modi file whatsnew.txt
The window pops up okay first time ,but when the same pad is clicked again
without closing window in the beginning of the application session it results in information box
"Active form is not an object"
pressing "Help" brings topic
"name" is not an object (Error 1924)
This name was previously defined as something other than an object.
You have another occurrence of name.
Check your code for duplicate instances of name.
It needs clicking "OK" button several times to clear this information box.
Then the problem cannot be reproduced .
Because we sit in "modi file ..." any flags before that or skip for wexist("WHATSNEW.TXT" ) don't seem to be helpful. Any ideas ?
Thank you.
Michael
Suivant
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