phabio
2014-05-06, 10:15
I'm trying to store a filename into a formfield...
I've create a section, with a formfield (table = "app" and field = "apppname", fieldid = "filename").
I've created a canvas section with a CommandButton:
proc page1_section3_field16_click()
// insert your code here
m_filename = getfile()
m_file = Lianja.GetElementByID("filename")
select app
? "m_filename = " + m_filename
replace apppname with m_filename
endproc
but I got error:
mar 6. mag 17:10:46 2014
**** Lianja error ****
"m_filename = " + m_filename
^
Field variable was expected
Called from procedure - page1_section3_field16_click at line 20
why?
also with debug info I cannot resolve..
thanks
Fabio
I've create a section, with a formfield (table = "app" and field = "apppname", fieldid = "filename").
I've created a canvas section with a CommandButton:
proc page1_section3_field16_click()
// insert your code here
m_filename = getfile()
m_file = Lianja.GetElementByID("filename")
select app
? "m_filename = " + m_filename
replace apppname with m_filename
endproc
but I got error:
mar 6. mag 17:10:46 2014
**** Lianja error ****
"m_filename = " + m_filename
^
Field variable was expected
Called from procedure - page1_section3_field16_click at line 20
why?
also with debug info I cannot resolve..
thanks
Fabio