Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strange eratic behavior with Edit box.
Message
De
22/02/1998 01:23:00
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Strange eratic behavior with Edit box.
Divers
Thread ID:
00080311
Message ID:
00080311
Vues:
59
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform