Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > By


Reply
 
Thread Tools Display Modes
  #1  
Old 07-04-2005, 03:26 AM
OMID SOFT OMID SOFT is offline
Contributor
 
Join Date: May 2004
Location: Richmond Hill
Posts: 538
Default By


Public Function SilentVerify(EmailInput As String) As Boolean
Check the EmailInput to see if it's valid.
End Function
-
OK, I use the text inside a text box to be checked with this function everything is allright.
SilentVerify(Text1.Text)
-
But I am reading the data from a text file:
-
Open (Text.Text) For Input As #1
Line Input #1, LineIn
Close #1
-
SilentVerify(LineIn)
This will return an error :
"ByRef argument type mismatch"
Why ?!
And how to resolve it ?!
__________________
Don't ask what your country can do for you, ask what you can do for your country...
Reply With Quote
  #2  
Old 07-04-2005, 03:31 AM
anthony_n's Avatar
anthony_n anthony_n is offline
Senior Contributor
 
Join Date: May 2005
Location: Manchester,England
Posts: 1,293
Default

what is LineIn defined as
Reply With Quote
  #3  
Old 07-04-2005, 03:33 AM
arluijen's Avatar
arluijen arluijen is offline
Regular
 
Join Date: Jun 2003
Location: Netherlands
Posts: 89
Default

shouldn't "Open (Text.Text) " be "Open (Text1.Text) " ??
__________________
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

"Put the 'off' button on."
-George W. Bush, at.:- South Carolina, February 14, 2000
Reply With Quote
  #4  
Old 07-04-2005, 03:36 AM
anthony_n's Avatar
anthony_n anthony_n is offline
Senior Contributor
 
Join Date: May 2005
Location: Manchester,England
Posts: 1,293
Default

should be

ifile as Integer
ifile = freefile
dim linein as string
dim FileName as string

if Dir(text1.text) <> "" then
FileName = text1.text
Open FileName For Input As ifile

line input ifile,Linein

close ifile
else
'Errocode
end if

I think he has got no definition of Linein and it is a verient

Last edited by anthony_n; 07-04-2005 at 03:48 AM.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->