msgbox problem

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
franco
Posts: 816
Joined: Sat Nov 02, 2013 5:42 am
DBs Used: DBF
Location: Canada

msgbox problem

Post 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
Last edited by franco on Wed Apr 25, 2018 3:49 pm, edited 3 times in total.
All The Best,
Franco
Canada
User avatar
dragancesu
Posts: 920
Joined: Mon Jun 24, 2013 11:53 am
DBs Used: DBF, MySQL, Oracle
Location: Subotica, Serbia

Re: msgbox problem

Post by dragancesu »

What is the QTY, variable or database field?

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

where <control> is like Browse, Grid, ...
franco
Posts: 816
Joined: Sat Nov 02, 2013 5:42 am
DBs Used: DBF
Location: Canada

Re: msgbox problem

Post 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
All The Best,
Franco
Canada
Post Reply