Data appears on the grid in a form but is not saved on the table in Visual FoxPro 9 -


i have simple form grid user enters data save click event. worked after while (and few modifications later), when 1 hits save button, appears saved on grid. after closing screen , re-opening, data doesn't appear more. tried looking @ tables , nothing although recordid (autoincrement integer) has increased, no data saved. form data session proerty set private. help?

thanks

fred kenya

several things can double check. using tableupdate() , verifying returns true (.t.)? common problem. once know failing can use aerror() determine why.

if tableupdate(.t., )
* well, nothing
else
aerror(laerror)
* message user , determine content of laerror , how failed.
endif

another common problem not using alias on tableupdate(), third parameter.

because see data in grid assume have bound correctly, potential pitfall. verify recordsource of grid correct , each column controlsource valid.

one other thing. if using view , have view table in data environment might have case of double buffering , have first update view, update table.

rick schummer


Comments

Popular posts from this blog

unicode - Are email addresses allowed to contain non-alphanumeric characters? -

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -