General information
Title:
Strange eratic behavior with Edit box.
I have a SDI form which has two edit boxes. I'm using the edit boxes to display contents from some temporary text files that I've created.
I have an SDI Menu which allows the user to open a table. With that table, I use AFIELDS() to extract structure information which I use to Fput into a text file. Next, I use another method to extract CDX information which I fput into another textfile.
Then I issue the following commands:
create cursor MyCursor1 (mem m)
append blank
append memo mem from (lcMyTextFile) overwrite
if !empty(MyCursor1.mem) .and. _tally != 0
thisform.indexes.controlsource = "MyCursor1.mem"
endif
thisform.refresh()
erase (lcMyTextFile)
I do the same bunch of commands for the second edit box, only I fput it with different stuff, then and the cursor I create is call MyCursor2 instead of myCursor1.
My problem is that sometimes when I excute this program, the second edit box stays blank. Even though the text file I'm creating has stuff in it. I'll run the program again, and it will run fine with both boxes refreshing.
What is going on? Could this be a bug? -Rick
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only