Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form Class Calling Another Form Errors
Message
De
02/09/2004 13:55:50
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Form Class Calling Another Form Errors
Divers
Thread ID:
00938876
Message ID:
00938876
Vues:
76
I have a class that a form is created from in my app:
ofrmInsGrid = CREATEOBJECT("UniGridPlus") && this is the class
In a method of the class UniGridPlus I do a search and during the search if more than match is found I call another method in the class which calls a popup form that allows the user to select which record to view:
*unigridplus dosearch()
*Step through all matches and store the record to an array then
*Call multirec form to allow the user to select which record to go to
IF numrecs > 1
	m.recselected = 1
	THISFORM.multirec("MULTIPLE ACCOUNT # "+ALLTRIM(accountnum))
	IF m.recselected = 0
		isvalid = .F.
		mpo_sysnum = 0
	ELSE
		GOTO reclist(m.recselected,2)
		mpo_sysnum = po_sysnum
	ENDIF
ELSE
	IF numrecs = 0
		=okay("Account # "+ALLTRIM(accountnum)+" not found.")
		isvalid = .F.
	ENDIF
ENDIF

*unigridplus multirec()

LPARAMETERS mtitle

*---Select from multiple records

DO FORM multirecs NAME omultirecs LINKED WITH mtitle *<===ERROR HERE!

RELEASE omultirecs
The problem is that at times if I do not completely recompile the app everytime, even in development mode I will receive the error:

File 'c:\profiler32\progs\multirecs.scx' does not exit.

However, the form is included in the project and the multirecs form is an actual form and not a class.

Any ideas?
TIA!
Tracy
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform