Solved

VB6 Split

Posted on 2004-04-03
3
2,006 Views
Last Modified: 2007-12-19
I have two projects:

1) If I type Split( in the first one I get yellow help 'Expression as string etc

2) If I Type Split( in the secong one I get 'SplitNum as String'

I cannot see why the second application will not give me the correct SPLIT function. The first 4 items in references ar the same in both.

I feel that the second project must contain references that are over writing the split function.

Any ideas?

Your desparatley  

Martin
0
Comment
Question by:martinhickling01
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 67

Expert Comment

by:sirbounty
ID: 10747354
How have you declared the variables you're trying to split?
0
 
LVL 2

Accepted Solution

by:
Ivan_Skrinjaric earned 125 total points
ID: 10747516
Click with your right mouse button on split an choose definition. You will then see from where does the split function comes.
Or just type VBA.Split an you will get the right one.

Hope I helped.

Ivan.
0
 

Author Comment

by:martinhickling01
ID: 10748558
Thanks Ivan,

I had created a global function in the second project to split a user string.

Although I have been programing specifically with VB6 for 2 1/2 years now I had never noticed a right click as you suggested.

I have prefixed with VBA.Split and the code works perfectly.

0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question