Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strange eratic behavior with Edit box.
Message
From
22/02/1998 01:23:00
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Strange eratic behavior with Edit box.
Miscellaneous
Thread ID:
00080311
Message ID:
00080311
Views:
55
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
Map
View

Click here to load this message in the networking platform