Nerissa,
>I am having a "File does not exist" error when I try to display my form. This error is shown in the CContrls.vcx CTextBox.Init() method. And the error box is displaying the line below.
>
>This.InputMask = REPLICATE("X", ;
> FSIZE(JUSTEXT(This.ControlSource), JUSTSTEM(This.ControlSource)))
>
>The complete code is as follows:
>
>IF EMPTY(This.InputMask) AND TYPE(This.ControlSource) == "C"
> IF USED(JUSTSTEM(This.ControlSource))
> This.InputMask = REPLICATE("X", ;
> FSIZE(JUSTEXT(This.ControlSource), JUSTSTEM(This.ControlSource)))
> ENDIF
>ENDIF
>
>I am wondering on what file does not exist. I already checked the txtbox that it pertains and it's in the form. I checked the view if it is open and yes, it was opened and in fact in used.
This code is used to check the length of the view field and set the InputMask property accordingly. Are you sure there are no typos in your ControlSource? At the point where you encounter the error, is the specified view USEd and is the field name correct?
Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com