Hy Sergey,
I don't understand what happened. I verified that the include file was in the form, but it kept crashing. I then typed "compile form myform.vcx" in the command window and it worked.
I was under the impression that closing and saving in the form designer would be enough to get it compiled.
>It sound like you don't have include file in your form. Double check and if it's there, try to recompile this form.
>
>>This works from the command window.
>>
>>#DEFINE DV _vfp.startmode=0
>>if DV
>> ? 'Works'
>>endif
>>
>>why doesn't this work?
>>
>>file myInclude.h
>>#DEFINE DV _vfp.startmode=0
>>
>>myForm
>> include file: myInclude.h
>>
>>myForm.Init()
>> if DV << triggers error "variable 'DV' not found"
>> .....
>> endif
>>
Bill Morris