Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
This is a weird one!
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00271823
Message ID:
00271946
Vues:
23
>Jon,
>
>Stop wondering, open the debugger and run your app, when the error occurs choose Suspend and go to the debugger, it will show the exact line of code that caused the error.
Jim,
Tried that :) here is the exact line of code where the form bombs
DODEFAULT()
THIS.PARENT.PARENT.COMBO1.SETFOCUS &&Right here

Not a very important Line of code, so I commented it out and retried, same thing on the line above, Note: not it the class code but on the DODEFAULT line itself. I then change my tab order to select something other than the combobox when my form went into edit mode.

Come to find out the form would bomb as soon as I gave the combobox focus. It has no GOTFOCUS code either. So I even change the ComboBox's record source to a view base on the entire cust.dbf file. Still the same thing would happen. Here are the properties for the combobox as pulled from the class browser
ADD OBJECT jobs.pageframe1.page1.combo1 AS combobox WITH ;
	FontSize = 8, ;
	ColumnCount = 4, ;
	ColumnWidths = "40,150,100,55", ;
	RowSourceType = 6, ;
	RowSource = "cust.custid,custcompany,custcity,custstate", ;
	ControlSource = "Jobhd.Custid", ;
	FirstElement = 1, ;
	Height = 24, ;
	Left = 78, ;
	NumberOfElements = 0, ;
	Style = 0, ;
	TabIndex = 3, ;
	Top = 47, ;
	Width = 100, ;
	DisabledForeColor = RGB(0,0,0), ;
	Format = "!K", ;
	BoundTo = .T., ;
	Name = "Combo1"
Please note, that I also deleted the Combobox and recreated it from scratch with the Builder, also to no avail.
Thanks
Jon
Non-MVP Non-MCP Non-MCSE

Visual FoxPro, What else is there?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform