This is my problem:
When i have more than 3 lines of text in de tempArray. Iget the following
message:
An unhandled exception of type 'System.NullRef erenceException ' occurred in
Allen's Woodshop.exe
Additional information: Object reference not set to an instance of an
object.
The program holds on the line:
'strItem=strTex tline(intFormTo tal).Split(";") '
I'm completly stuck at the moment, so i hope someone can help out of this
mess. Thankx a lot
Private Sub Button2_Click(B yVal sender As System.Object, ByVal e As
System.EventArg s)
Dim strItem(3), strTempItem(3) As String
Dim myComp, Teller As Integer
counter = 0
For intFormTotal = 0 To strTextline.Get UpperBound(0)
strItem = strTextline(int FormTotal).Spli t(";")
strTempItem = tempArray(count er).Split(";")
myComp = StrComp(strItem (0), strTempItem(0), CompareMethod.T ext)
If myComp = 0 Then
strItem(3) = strTempItem(3)
strTextline(int FormTotal) = Join(strItem, ";")
counter += 1
If tempArray.GetUp perBound(0) = counter Then
Exit For
End If
Else
strItem(3) = strItem(3)
strTextline(int FormTotal) = Join(strItem, ";")
If tempArray.GetUp perBound(0) = counter Then
Exit For
End If
End If
Next
FForm1.lstWoods hop.Items.Clear ()
intFormTotal = 0
Do Until intFormTotal = 24
FForm1.lstWoods hop.Items.Add(s trTextline(intF ormTotal))
intFormTotal += 1
Loop
End Sub 4 1984
"Jan" <ca*****@planet .nl> schrieb This is my problem: When i have more than 3 lines of text in de tempArray. Iget the following message:
An unhandled exception of type 'System.NullRef erenceException ' occurred in Allen's Woodshop.exe
Additional information: Object reference not set to an instance of an object.
The program holds on the line: 'strItem=strTex tline(intFormTo tal).Split(";") '
I'm completly stuck at the moment, so i hope someone can help out of this mess. Thankx a lot
I can not reproduce it because several variable declarations are missing.
I declared Dim counter, intFormTotal As Integer, but how am I to declare
tempArray and strTextline?
--
Armin http://learn.to/quote http://www.plig.net/nnq/nquote.html
"Jan" <ca*****@planet .nl> wrote in message
news:l2******** *************** *******@40tude. net... This is my problem: When i have more than 3 lines of text in de tempArray. Iget the following message:
Dim strItem(3), strTempItem(3) As String
if you declare an array w 3 places (4 if you are starting from 0) it can
only hold 3 things
don't have time to go over it completely but i think this could be the
problem
eric
On Thu, 6 Nov 2003 15:30:48 +0100, Armin Zingler wrote: "Jan" <ca*****@planet .nl> schrieb This is my problem: When i have more than 3 lines of text in de tempArray. Iget the following message:
An unhandled exception of type 'System.NullRef erenceException ' occurred in Allen's Woodshop.exe
Additional information: Object reference not set to an instance of an object.
The program holds on the line: 'strItem=strTex tline(intFormTo tal).Split(";") '
I'm completly stuck at the moment, so i hope someone can help out of this mess. Thankx a lot
I can not reproduce it because several variable declarations are missing.
I declared Dim counter, intFormTotal As Integer, but how am I to declare tempArray and strTextline?
I have declared them with:
dim tempArray(25) as string
dim strTextline(25) as string
thnx for your attention
"Jan" <ca*****@planet .nl> schrieb I can not reproduce it because several variable declarations are missing.
I declared Dim counter, intFormTotal As Integer, but how am I to declare tempArray and strTextline?
I have declared them with: dim tempArray(25) as string dim strTextline(25) as string
thnx for your attention
There are no strings in the array. The array can hold 26 strings (index 0 to
25) but you don't store strings in the array.
--
Armin http://learn.to/quote http://www.plig.net/nnq/nquote.html This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: What-a-Tool |
last post by:
I'm going out out of my mind trying to get this to work with no luck. The
error message I get is at the bottom. Can someone please tell me what I'm
doing wrong here. I've tried this a million different ways and can't get it
to work. I can get it to work with VBScript, but I need to do this project
in JavaScript. HELP- PLEASE!?
<%@Language=JavaScript%>
<%Response.buffer=true%>
<%
|
by: marco |
last post by:
the problem:
I use a typedef inside a class template, than I use this type
(dim_v<N1>::Type) to define the argument of a template function f
but when I call this function from main, the compiler (gcc 3.4.1)
tell me: "no matching function found".
If someone, more expert than me, could tell me what is wrong
I would be very happy
|
by: Andreas Sheriff |
last post by:
Please evaluate the following snippet:
int a=5;
int b;
b = a++ + a;
Edit1->Text = b;
a = 5;
b = a++ + ++a;
Edit2->Text = b;
|
by: Helmut Giese |
last post by:
Hello out there,
I am a rather experienced C programmer. However, today I got a
javascript assignment because someone left (something like: "You're a
great programmer - you'll handle this.") and I never have done any web
stuff before. Oh, and it's due within 2 weeks of course :(
Having had a first look at javascript I noted some familiarities with
C, but there also seems to be a lot of pre-defined stuff (like
'document') with certain...
|
by: nicolas.riesch |
last post by:
I try to understand strict aliasing rules that are in the C Standard.
As gcc applies these rules by default, I just want to be sure to
understand fully this issue.
For questions (1), (2) and (3), I think that the answers are all "yes",
but I would be glad to have strong confirmation.
About questions (4), (5) and (6), I really don't know. Please help ! !
!
| |
by: Mike Barnard |
last post by:
It's a simple test... VERY SIMPLE. But...
In an external stlyesheet some attributes don't show. With the same
styles cut and pasted to the test internally it works as expected.
Anyone tell me why? Its probably sooooooo obvious, but it is 1.19 am!
Thanks.
www.thunderin.co.uk/
|
by: E-Dot |
last post by:
I am trying to write a program which asks the user to enter a number
in the interval , the program then gives the natural logarithm of
that number, using the series for log(x+1)...
Here is what I have so far and can't figure out what i'm doing wrong.
any help would be greatly appreciated, thanks guys...
#include <stdio.h>
#include <math.h>
|
by: Joshua Moore |
last post by:
/* Hi, I was hoping someone could help me with this problem. I did my
work and worked my way through the usual compiler messages, but I have
run against some problem I can't identify. The compiler error message
is unintelligable -- to me anyway. Anyway: Here is the code, maybe
someone can tell me what is wrong with it. */
//buysome.cpp
//Joshua Moore
//the part responsible for the buying part of the farm pos simulation
program
|
by: aslamhenry |
last post by:
please key in any 5 digits number : 56789
and the ouput is
5678 9
567 89
56 789
5 6789
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |