Question

I have a form in VFP 9 that is usually called from another form with 2 parameters. I've got a strange thing happening: when I execute DO FORM jobless_add in command window, the first parameter is always set to "2", while no parameters were added.

As a result, I have EMPTY(par1) == false and EMPTY(par2) == true. After that I've tried to open the form in the normal way (from the other form's button click with 2 parameters) and I've gotten this result in debugger

This is my first visit, so I cant insert images. Link: image (hint: Locals: all ok, Watches: "2" again)

NOTE: I have no global variables yet.

Was it helpful?

Solution

You most likely have a table with a field/column called 'jobless_id'.

To clarify further, a table's field takes precedence over a memory variable if you reference just the unqualified field name. Try "m.jobless_id" to explicitly reference the variable (i.e., the parameter).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top