Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Code Problem EVB

Status
Not open for further replies.

jaapb

Technical User
Oct 31, 2003
2
NL
In Embedded Visual Basic I try to store data to a File
in accordance to the code sample mentioned in "Help" under
File Control.

Option Explicit
Dim File1 As DataObjectFiles
Dim a1 As Object

Private Sub Command2_Click()
a1 = "\windows\test.txt"
File1(a1).Open "Output"
File1.Lineprint Text2.Text
File1.Close
End Sub

The Aswer is : An Error was encountered while running this
Program : Type Mismatch : '[Undefined]'

Who can help me; I have no idea to get further.



 
Thanks DeanConsulting for your advise.

"DataObjectFiles" is obtained by clicking one of the
possible choices in the list that appears after Dim As.
Nevertheless I tried what you advised but it did not work.
Also not working is :

Dim File1 As Object
Dim File1 As String

I hope there are other suggestions coming.








 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top