473,503 Members | 12,159 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

VB prob - calling functions

Just a quickie, the problem is I'm used to JAVA so not sure how to put this
right.

I'm calling a function from another function, but I get an invalid procedure
call error.

The code in the calling method is like this....

If (Not (isDigit(y))) Then .........

isdigit is simple enough ...

Function isDigit(toCheck As String) As Boolean
isDigit = (toCheck >= "0" And toCheck <= "9")
End Function

please help!
Chris
Nov 12 '05 #1
2 2464
"C L Humphreys" <cl*********@toofgib.moc> wrote in message
news:bn**********@ucsnew1.ncl.ac.uk...
Just a quickie, the problem is I'm used to JAVA so not sure how to put this right.


Bah, ignore that it was a problem elsewhere!
Nov 12 '05 #2
The problem is not in any of the code you have listed here.

Is y defined as string?
Regards
Peter Russell
C L Humphreys previously wrote:
Just a quickie, the problem is I'm used to JAVA so not sure how to put
this
right.

I'm calling a function from another function, but I get an invalid
procedure
call error.

The code in the calling method is like this....

If (Not (isDigit(y))) Then .........

isdigit is simple enough ...

Function isDigit(toCheck As String) As Boolean
isDigit = (toCheck >= "0" And toCheck <= "9")
End Function

please help!
Chris


Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
984
by: oeyvind toft | last post by:
I have set up a 'class' using the prototype prop. I pass the constructor a html tag children object and set 'this.obj = obj'. When calling the first method of the class using the object it works...
19
4219
by: Ross A. Finlayson | last post by:
Hi, I hope you can help me understand the varargs facility. Say I am programming in ISO C including stdarg.h and I declare a function as so: void log_printf(const char* logfilename, const...
5
2204
by: Dave | last post by:
does calling a regular function cost any cpu time? In other words, is it faster to write the code of two functions into main(), or is it the exact same thing as calling two functions. I know its...
1
2881
by: Jesse McGrew | last post by:
Hi all, I'm trying to make a plugin DLL for a third-party application, using VC++ .NET 2003. This DLL acts as a bridge between the C++ plugin API of the application, and my actual plugin code...
2
2805
by: Daniel Lidström | last post by:
I'm using a library called fyba. This library reads and writes files in a format called sosi. fyba uses the following code to determine if the calling process has own methods to handle errors,...
0
2785
by: vishal.nagota | last post by:
I'm making a project on vc++ express I want to plot graphs, so using MSChart evrything goes fine, till i come to point where I've to include afxdisp.h by defualt i'm using Project properties...
18
4311
by: John Friedland | last post by:
My problem: I need to call (from C code) an arbitrary C library function, but I don't know until runtime what the function name is, how many parameters are required, and what the parameters are. I...
2
1419
by: jhetfield18 | last post by:
I have to write a program for the university as a weekly project that gets an int array as an input and the contents can only be 0 and 1.Its supposed to be a maze solver.1 as wall and you can move on...
10
3233
by: sulekhasweety | last post by:
Hi, the following is the definition for calling convention ,which I have seen in a text book, can anyone give a more detailed explanation in terms of ANSI - C "the requirements that a...
0
7067
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7264
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6975
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7449
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4666
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3160
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3148
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
728
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
371
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.