473,796 Members | 2,482 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

passing a string or building a string for testing

I know this is a stupid question but I can't find the answer.
Please tell me where to find reference to this so I can print it out
and staple it to my head..

dim I as integer
dim missedstr as string

For i = 1 To 17
'If IsNull("questio n" & i & ".Value") Then
missedstr = missedstr & " question " & i
Next

I know that this does not work..it is saying that the string is null which it
never is.

I have added this to a string and passed it to the check and it says the string
is not null.

HOW do I have it check the value in the question to see if it is null..

I must be searching on the wrong syntax because I can't find it anywhere
thanks big time for a pointer to the answer
Nov 13 '05 #1
2 1460
"sparks" <sp****@anywher e.com> wrote in message
news:jm******** *************** *********@4ax.c om...
I know this is a stupid question but I can't find the answer.
Please tell me where to find reference to this so I can print it out
and staple it to my head..

dim I as integer
dim missedstr as string

For i = 1 To 17
'If IsNull("questio n" & i & ".Value") Then
missedstr = missedstr & " question " & i
Next
I know that this does not work..it is saying that the string is null which
it
never is.
I have added this to a string and passed it to the check and it says the
string
is not null.
HOW do I have it check the value in the question to see if it is null..
I must be searching on the wrong syntax because I can't find it anywhere


When you write:
If IsNull("questio n" & i & ".Value") Then

I suppose "question" & i stays for a field name in your form.
If so you must write:

If IsNull(Me("ques tion" & i)) Then

This is a rare case requiring Me, which is normally
a redundant word.

Bruno

Nov 13 '05 #2
Thank you VERY much for pointing that out to me.
On Fri, 15 Apr 2005 16:05:01 GMT, "Bruno Campanini" <br************ *@tin.it>
wrote:
"sparks" <sp****@anywher e.com> wrote in message
news:jm******* *************** **********@4ax. com...
I know this is a stupid question but I can't find the answer.
Please tell me where to find reference to this so I can print it out
and staple it to my head..

dim I as integer
dim missedstr as string

For i = 1 To 17
'If IsNull("questio n" & i & ".Value") Then
missedstr = missedstr & " question " & i
Next
I know that this does not work..it is saying that the string is null which
it
never is.
I have added this to a string and passed it to the check and it says the
string
is not null.
HOW do I have it check the value in the question to see if it is null..
I must be searching on the wrong syntax because I can't find it anywhere


When you write:
If IsNull("questio n" & i & ".Value") Then

I suppose "question" & i stays for a field name in your form.
If so you must write:

If IsNull(Me("ques tion" & i)) Then

This is a rare case requiring Me, which is normally
a redundant word.

Bruno


Nov 13 '05 #3

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

Similar topics

3
14954
by: domeceo | last post by:
can anyone tell me why I cannot pass values in a setTimeout function whenever I use this function it says "menu is undefined" after th alert. function imgOff(menu, num) { if (document.images) { document.images.src = eval("mt" +menu+ ".src") } alert("imgOff_hidemenu"); hideMenu=setTimeout('Hide(menu,num)',500);
0
1223
by: Tom Petersen | last post by:
I have this code taken from a website that works fine: <%@ Page Language="vb" ContentType="text/html" ResponseEncoding="iso-8859-1" Debug="False" trace="False"%> <%@ import Namespace="System.IO" %> <script runat="server"> Sub Page_Load(Sender As Object, E As EventArgs)
5
5833
by: jlea | last post by:
I'm trying to pass a filename, obtained with using the fileName property from the OpenFileDialog, as a application parameter in Process.StartInfo.Arguments and run a MFC/C++ application using the Start method. When I hardcode the application parameter such as "/name=c:\\myFile.txt" all is well in the C++ application. When I use the fileName property to build the parameter, the string becomes @"/name=c:\myFile.txt" which makes the C++...
7
11086
by: Oleg Konovalov | last post by:
Hi, I am trying to pass a bunch of checked checkboxes (Javascript array) from page1 to the Java action class on subsequent web page (page2). (on page 1 I have a bunch of DB rows with a checkbox, need to iterate through pages page2 - e.g. allow user to update the fields there) On page1 I have a bunch of checkboxes with the same name v1 but different values (= DB rowId).
33
4693
by: genc_ymeri | last post by:
Hi over there, Propably this subject is discussed over and over several times. I did google it too but I was a little bit surprised what I read on internet when it comes 'when to use what'. Most of articles I read from different experts and programmers tell me that their "gut feelings" for using stringBuilder instead of string concatenation is when the number of string concatunation is more then N ( N varies between 3 to max 15 from...
22
3502
by: tshad | last post by:
If I am passing a variable by reference to another routine by reference, do I need to dereference first? string testString; .... FirstSub(ref firstString) { HandleString(ref firstString); //do I need to de reference here or just pass theString without the "ref"
18
6050
by: Greg Scharlemann | last post by:
I'm having an issue passing a boolean to the constructor of an object. For some reason, if I pass false into the constructor, it doesn't register. If I pass an integer 0, it does. PHP 5 Code below: --------------------- class Test { var $testBool; public function __construct($testBool) { print "testBool = $testBool";
3
7597
by: jrogers.sw | last post by:
I am using an objectdatasource with a .Net 2.0 ASP page. The SQL for the tableadapter needs to use the IN operator as in WHERE job_id in (111, 222, 333, 444, 555) Job_id is a DBType Decimal and ProviderType Number I have set the default value for the parameter to be 19620,19610,19580,19550 for testing However, .Net strips the , and turns it into one large number.
9
3806
by: Greger | last post by:
Hi, I am building an architecture that passes my custom objects to and from webservices. (Our internal architecture requires me to use webservices to any suggestion to use other remoting techniques are not feasible) The question is; Given that I have a Person object with a private set for id. What is the recommended approac in passing that object to the web service
0
9680
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, 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...
0
9528
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10228
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 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...
1
10173
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7547
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 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...
0
6788
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();...
0
5441
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...
0
5573
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4116
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.