Solved

VB6 Split

Posted on 2004-04-03
3
2,001 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
3 Comments
 
LVL 67

Expert Comment

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

Accepted Solution

by:
Ivan_Skrinjaric earned 125 total points
Comment Utility
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
Comment Utility
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

A short article about a problem I had getting the GPS LocationListener working.
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

772 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now