visual foxpro - insert a new line of row into grid without recordsource -


i've problem insert new row line record without insert cursor , append recordsource. said i've 5 record in existing grid list need add new line next row under grid list.

here code:

vc_tmpfile = alltrim(sys(3)) + ".dbf"  create table &vc_tmpfile (text c(254))  append c:\tmp\aaa.out type sdf  dele len(alltrim(text)) < 15  pack  thisform.grid_list    while !eof()        if alltrim(substr(text,1,4)) == "popl"           .columns(2).text1.value = alltrim(substr(text,6,6))--->>it shows nothing after insert       endif     skip   enddo  endwith 

appreciate thankful help.

the vfp grid control displays data recordsource, , 1 "alias".

so easy vfp way sql insert youralias ..., or use xbase append , replace ... commands.

in scenario, grid.recordsource temp table created, code improved if you'd use create cursor ... command creating temporary table, , avoiding infamous & operator , using (name) expressions instead wherever can


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -