I have a control, in a grid, which tries to pop-up another form so the user can select a value. This usually works! However, in certain (unknown) circumstances, this error is thrown from within the new form while that form is initializing a Timer control. The timer control has this code in it's .Init method:
The error is #45 "Not a character expression"
I can't see how these addproperty functions could possibly throw that error, no matter What! I haven't been able to reproduce the problem, and this same form class (with the timer in it) is used in hundreds of other forms on thousands of computers... the error only happens with this one form being instantiated from within a textbox contained in a grid.
This is all the details of the error that is thrown:
- Bill
Get the best answers to your questions -- See FAQ481-4875.
Code:
THIS.AddProperty('nEventCount',0)
THIS.AddProperty('aEventList[1,2]','')
The error is #45 "Not a character expression"
I can't see how these addproperty functions could possibly throw that error, no matter What! I haven't been able to reproduce the problem, and this same form class (with the timer in it) is used in hundreds of other forms on thousands of computers... the error only happens with this one form being instantiated from within a textbox contained in a grid.
This is all the details of the error that is thrown:
Code:
Current Environment: 03/06/2005 11:32 AM
OS(): Windows 5.01
Version(): Visual FoxPro 08.00.0000.3117 EXE Support Library for Windows
Procedure: aasgridmonthviewwin.aasgridmonthviewwin.tmrdelayedactions.AddProperty
Line(): 0
Error(): 45
Message(): Not a character expression.
Message(1): Not a character expression.
SET('Defa')+CurDir(): C:\DOCUMENTS AND SETTINGS\ALL USERS\DOCUMENTS\
Alias(): CGLOBALEXC (Order():DISPORD) (Dbf:C:\DOCUME~1\JONNIE\LOCALS~1\TEMP\M5LW00AW.TMP) (Rec:1/1 )
Filter() =
On('Error') =do errproc with sys(16),lineno(),error(),message(),message(1)
set('Device') =SCREEN
======================================================
Call Stack (assembled from Program(i) and sys(16,i):
1) LOADER C:\PROGRAM FILES\ALL AMERICAN SPORTSWARE\GAME TIME\GTWIN.EXE
2) GTW C:\PROGRAM FILES\ALL AMERICAN SPORTSWARE\GAME TIME\GTWIN.APP
3) GTDIVWIZ.PGFWIZARD.PAGE5.CMDADDGLOBALEXCEPTION.CLICK PROCEDURE GTDIVWIZ.PGFWIZARD.PAGE5.CMDADDGLOBALEXCEPTION.CLICK C:\PROGRAM FILES\SOURCE\GTWIN\GTDIV.VCT
4) GTDIVWIZ.ADDGLOBALEXCEPTION PROCEDURE GTDIVWIZ.ADDGLOBALEXCEPTION C:\PROGRAM FILES\SOURCE\GTWIN\GTDIV.VCT
5) GTDIVWIZ.PGFWIZARD.PAGE5.GRDGLOBALEXC.COLUMN1.AASGRIDMONTHVIEW1.SHOWCAL PROCEDURE GTDIVWIZ.PGFWIZARD.PAGE5.GRDGLOBALEXC.COLUMN1.AASGRIDMONTHVIEW1.SHOWCAL C:\PROGRAM FILES\SOURCE\AASGRID.VCT
6) AASGRIDMONTHVIEWWIN.TMRDELAYEDACTIONS.INIT PROCEDURE AASGRIDMONTHVIEWWIN.TMRDELAYEDACTIONS.INIT C:\PROGRAM FILES\SOURCE\AAS.VCT
7) AASGRIDMONTHVIEWWIN.ERROR PROCEDURE AASGRIDMONTHVIEWWIN.ERROR C:\PROGRAM FILES\SOURCE\AASGRID.VCT
8) AASFORM.ERROR PROCEDURE AASFORM.ERROR C:\PROGRAM FILES\SOURCE\AAS.VCT
9) ERRPROC ERRPROC.FXP
10) GETLONGERRORMESSAGE PROCEDURE GETLONGERRORMESSAGE ERRPROC.FXP
- Bill
Get the best answers to your questions -- See FAQ481-4875.