Hi,
I have a frame with text boxes and ok and cancel click which is called from an other frame. I want to save the text that user enters in textbox called "txtTargetName" in a file. I tried to define the content of one text box (for test) as:
Code:Option Explicit 1. Private sub cmdOK_Click() 2. dim Point as string 3. 'here I open file as #1 for output 4. Point=txtTargetName.Text 5. print #1, Point 6. End sub
but it says "Type mismatch". If I put "dim Point..." after option explicit and before private sub program says type missmatch, also. And if I put it in mother frame, it says that the variable is not defined.
How can i fix this?
I work with VB 6.0




Reply With Quote
