Page 1 of 1

msgbox problem

Posted: Wed Apr 25, 2018 10:49 am
by franco
I am getting an odd error message and program crash.
I am in a grid which it`s table has a field QTY
I am checking a different table when saving grid and using msgbox

function grid
select table1
define grid
fields item qty description
on change savecell()
return

function savecell
select different table
if ! rlock()
msgbox('Can Not Get Lock') on line 1700
endif
select table1
return

my error is varible does not exist QTY
called from (getfiledata(2910)
called from (getdatagridcelldata(2889)
called from events(3060)
called from c_messagbox(0)
called from msgbox(153)
called from savecell(1700) (my last program line number)

I am getting this error in other parts of program also on msgbox()
Any thoughts ... Franco

Re: msgbox problem

Posted: Wed Apr 25, 2018 11:03 am
by dragancesu
What is the QTY, variable or database field?

If the field is then <control>.QTY.Value

where <control> is like Browse, Grid, ...

Re: msgbox problem

Posted: Wed Apr 25, 2018 3:52 pm
by franco
found fix
before msgbox I changed back to grid table
function savecell
select different table
if ! rlock()
select table1
msgbox('Can Not Get Lock') on line 1700
endif
////////select table1
return
I will leave this post for others may have problem
Thanks Franco