473,399 Members | 3,656 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Whats the syntax for running a function through a private sub?

I've written a program for one of my classes and its all
finished except i cant figure out the code that i need to
bring in for a sub that runs a function ...

lstGrades.Text = FindGrades(intX(Highest.txt),
intX(Lowest.text)
strName = FindGrades(Letter, Average)

does that seem right??
Nov 20 '05 #1
2 763
ummm

could you post your fucntion please?

thanks,
cj
"Zach" <an*******@discussions.microsoft.com> wrote in message
news:00****************************@phx.gbl...
I've written a program for one of my classes and its all
finished except i cant figure out the code that i need to
bring in for a sub that runs a function ...

lstGrades.Text = FindGrades(intX(Highest.txt),
intX(Lowest.text)
strName = FindGrades(Letter, Average)

does that seem right??

Nov 20 '05 #2
Something like this? Maybe?

Private Overloads Function FindGrades(ByVal text As String) As String
'-- Do whatever

Return "Your name is mud"
End Function

Private Overloads Function FindGrades(ByVal text As String, ByVal avg As
Integer) As String
'-- Do whatever

Return "Your name is mud"
End Function

Private Function intX(ByVal text As String) As String
'-- Do whatever

Return "Your name is mud"
End Function
"Zach" <an*******@discussions.microsoft.com> wrote in message
news:00****************************@phx.gbl...
I've written a program for one of my classes and its all
finished except i cant figure out the code that i need to
bring in for a sub that runs a function ...

lstGrades.Text = FindGrades(intX(Highest.txt),
intX(Lowest.text)
strName = FindGrades(Letter, Average)

does that seem right??

Nov 20 '05 #3

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

Similar topics

2
by: David | last post by:
I am stumped ..how do I use the flag (secton c) INHERITANCE (a) Create a class Car that conatins two integer fields. One holds a flag indicating whether the ignition is on; the other holds...
3
by: Aaron | last post by:
Can someone tell my why my functions are returning "nothing"? In the SQLStatement Sub, ColumnNames & FromClause & WhereClause & OrderClause all come up as "nothing". I can't figure out why my...
18
by: robert | last post by:
Using global variables in Python often raises chaos. Other languages use a clear prefix for globals. * you forget to declare a global * or you declare a global too much or in conflict * you...
22
by: cj | last post by:
My program checks to see if another program is already running and if so I want it to "restore" as windows puts it that other program so it appears on top of anything else on the screen. I know...
9
by: esakal | last post by:
Hello, I'm programming an application based on CAB infrastructure in the client side (c# .net 2005) Since my application must be sequencally, i wrote all the code in the UI thread. my...
20
by: W Karas | last post by:
Would the fear factor for concepts be slightly reduced if, instead of: concept C<typename T> { typename T::S; int T::mem(); int nonmem(); };
1
by: patelxxx | last post by:
I want to add another function(function show(id)) to the link below: <A HREF="javascript:transferData();"> Show me what I entered! </A> cheers
0
by: Terry Reedy | last post by:
Stef Mientki wrote: Indendation is screwed. Is the above all do_more body? Which locals does this get you? __init__'s? (locals()?) Isn't this just the same as globals()?
4
by: (2b|!2b)==? | last post by:
template <typename T1, typename T2> struct MyDbInfo { MyDbInfo():m_pEnv(0), m_tran(0), m_db(0), m_idx(0) {} MyDbInfo(CDbEnv *env, DbTxn* tran, T1* db_ptr, T2 *idx_ptr):m_pEnv(env),...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.