473,394 Members | 1,696 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,394 software developers and data experts.

Trying to paste sub procedure into A97 global module - code lines show up red

MLH
I'm trying to paste the following sub into an A97 global module.
Code lines failing to compile show up in red immediately. The 3
lines referencing "Array" are the one's failing. Sorry for the news
reader wrapping in the first line...

Sub ParseTokens (Array() As String, ByVal sTokens As String, ByVal
sDelim As String)
'************************************************* ************
' SUB NAME: ParseTokens
'
' PURPOSE:
' Extracts information from a delimited list of items and places
' it in an array. Called by Function SendMail.
'
' INPUT PARAMETERS:
' Array(): A one-dimensional array of strings in which the parsed
' tokens will be place
' sTokens: A delimited list of tokens
' sDelim: The delimiter used to delimit sTokens
'
' RETURN
' None
'
'************************************************* ************
Dim i As Integer
For i = LBound(Array) To UBound(Array)
Array(i) = GetToken(sTokens, sDelim)
Next

End Sub

Nov 13 '05 #1
6 1153
MLH
BTW... The same code in Access Basic has no problem.
I must have the A97 VBA syntax wrong.
Nov 13 '05 #2
Hmm... any reason the SPLIT function won't work for you?

Nov 13 '05 #3
pi********@hotmail.com wrote:
Hmm... any reason the SPLIT function won't work for you?


Access 97 doesn't have it.

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 13 '05 #4
MLH
That's reason enough for me.
Nov 13 '05 #5
On Wed, 05 Oct 2005 19:05:23 -0400, MLH <CR**@NorthState.net> wrote:
I'm trying to paste the following sub into an A97 global module.
Code lines failing to compile show up in red immediately. The 3
lines referencing "Array" are the one's failing. Sorry for the news
reader wrapping in the first line...

Sub ParseTokens (Array() As String, ByVal sTokens As String, ByVal
sDelim As String)
'************************************************ *************
' SUB NAME: ParseTokens
'
' PURPOSE:
' Extracts information from a delimited list of items and places
' it in an array. Called by Function SendMail.
'
' INPUT PARAMETERS:
' Array(): A one-dimensional array of strings in which the parsed
' tokens will be place
' sTokens: A delimited list of tokens
' sDelim: The delimiter used to delimit sTokens
'
' RETURN
' None
'
'************************************************ *************
Dim i As Integer
For i = LBound(Array) To UBound(Array)
Array(i) = GetToken(sTokens, sDelim)
Next

End Sub


Could it be that Array is a reserved word?

mike

Nov 13 '05 #6
MLH
You hit the nail dead on the head. Many thx!
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Could it be that Array is a reserved word?

mike


Nov 13 '05 #7

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

Similar topics

6
by: flamesrock | last post by:
ok, so to my knowledge, object oriented means splitting something into the simplest number of parts and going from there. But the question is- when is it enough? For example I have the following...
8
by: Rich Grise | last post by:
I think I've finally found a tutorial that can get me started: http://www.zib.de/Visual/people/mueller/Course/Tutorial/tutorial.html and I've been lurking for awhile as well. What happened is,...
2
by: Josh Strickland | last post by:
I am attempting to create an Access database which uses forms to enter data. The issue I am having is returning the query results from the Stored Procedure back in to the Access Form. ...
8
by: MLH | last post by:
My autoexec macro in an Access 2.0 database has 2 lines. The first runs DoMenuItem - Database - Window - Hide. The second lines is Runcode - Initialize(). Initialize is a procedure in a global...
6
by: Armando | last post by:
I get the urge to do this every several years, and in each new language I get proficient in. I want to write a program that will generate an indented list (maybe I'll learn about TreeViews later)...
11
by: Capstar | last post by:
Hi, I am working on an application, which will run embedded without an OS. The app is build up out of a couple of well defined parts. At first I wanted to keep those parts seperated and use...
3
by: CsProviders | last post by:
i am a newbie to .net programming, i am having problem with global data and form instanciation. My questions are How do i maintain global data in windows forms applications? How do i navigate from...
13
by: Neil | last post by:
Can I get the name of a procedure from within the procedure? In my error handler, I write the error to an error table. I'd like to write the name of the procedure that's writing the error. But,...
5
by: Bruno Ferreira | last post by:
Hi, I wrote a very simple python program to generate a sorted list of lines from a squid access log file. Here is a simplified version: ################################## 1 logfile = open...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
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...

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.