PDA

View Full Version : put filename into formfield



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

yvonne.milne
2014-05-06, 10:57
Hi Fabio,

How many p's in the fieldname - 2 or 3?

Regards,

Yvonne

HankFay
2014-05-06, 12:36
Hi Yvonne,

are you asking because you think the debugger might have reported the line # incorrectly?

I ask because I keep thinking I am (randomly) seeing that; but usually am in the midst of debugging session, and am loathe to step out of the mindset to try to recreate (and when I've tried to recreate, haven't been able to do so).

thanks,

Hank


Hi Fabio,

How many p's in the fieldname - 2 or 3?

Regards,

Yvonne

phabio
2014-05-07, 01:21
Sorry Yvonne, wat's " p's " ?



Hi Fabio,

How many p's in the fieldname - 2 or 3?

Regards,

Yvonne

barrymavin
2014-05-07, 01:50
apppname or appname

phabio
2014-05-07, 02:40
:o

too much Lianja code in this day... ;)

Thanks all