Changing Open Order-Forms Pdox7 Win 3.1 
Author Message
 Changing Open Order-Forms Pdox7 Win 3.1

Situation:
Form with table object.  Undefined calculated field displays a complete
name taking the first name, last name etc. out of the table object.
Problem:
The calculated field opens before the table object and I get the error
trying to use an undeclared variable --something to that effect anyway.
This form used to work until I made some changes.
If I run the form from design mode everything works just fine.

Obviously there are work arounds for this problem, but is there a way to
reorder which objects open first?
Thanks,
Mark



Sat, 16 Oct 1999 03:00:00 GMT
 Changing Open Order-Forms Pdox7 Win 3.1

Quote:
> Form with table object.  Undefined calculated field displays a complete
> name taking the first name, last name etc. out of the table object.
> Problem: The calculated field opens before the table object and I get
> the error trying to use an undeclared variable

Solution:

try
   ; your code here
onFail
   errorClear()
endTry

There is NO excuse for not putting this construction around just about
every piece of code you ever write. The only change in other situations
would be to change errorClear() to errorShow().

Daniel A. Morgan



Sat, 16 Oct 1999 03:00:00 GMT
 Changing Open Order-Forms Pdox7 Win 3.1

<snip>

Quote:
> Solution:

> try
>    ; your code here
> onFail
>    errorClear()
> endTry

> There is NO excuse for not putting this construction around just about
> every piece of code you ever write. The only change in other situations
> would be to change errorClear() to errorShow().

> Daniel A. Morgan

Perhaps I wasn't clear.  The code that creates the error is a calculated
field. I am not aware a any measure to place a try block expressly
around a calculated field.
By the way the error does get trapped in a try block at the form level,
but I would prefer to remove errors, not work around them.
Mark


Sun, 17 Oct 1999 03:00:00 GMT
 
 [ 3 post ] 

 Relevant Pages 

1. Formatted Fields Pdox7 Win 3.1

2. Graph Disapears Pdox7 Win 3.1

3. Lost Clusters Pdox7 Win 3.1

4. Restructuring an existing database in PDOX7 for Win 3.1

5. Debugger Out of Memory: Pdox7 for Win 3.1

6. PDOX5.0 open form command Vs. PDOX7.0 open form command

7. form question - PdoxWin 7 win 3.1

8. PDOX 5.0 Win 3.1: Multitable form problem...HELP!

9. Trying to open a form from another form in pdox7.0

10. Trying to open a form from another form in pdox7.0

11. PDOX7-OPENING FORM FROM WITHIN A FORM-CLARIFICATION

12. pdox7-opening a form from within a form


 
Powered by phpBB® Forum Software