Ticket #713 ( Closed )

Short Description add a null value
Entered By: beverly.barrington@famu.edu When: 2001-04-02 17:20:20 Build: 2.0.6F
Categories Type: Problem   Department: Product   Category: Not Categorized
Description
I use SS.AddInput "MI" Session("mi"), it said:"Type 
mismatch."(the field is empty),since middlename is not 
required, so sometimes its value is null.
But sometimes it is okey. what should be the problem? Would 
you please help me out? thank you.
Append By: WindSurfer  When: 2001-04-02 18:07:19  New Status: Pending Customer
Comment
What is happening is that the datatyping inside the ActiveX 
module is trying to find an AddInput method with only one 
text parameter ("name")...we don't have an AddInput with 
only one text parameter...you need one text and then one 
other.

Why not do an IF, as in:

IF Session("mi") <> NULL THEN
 SS.AddInput "MI" Session("mi")
ENDIF

(I'm not sure on the NULL part, not having much VB 
experience)...maybe just use:

IF Session("mi") THEN
 SS.AddInput "MI" Session("mi")
ENDIF

???
Append By: beverly.barrington@famu.edu  When: 2001-04-03 14:38:00  New Status: Closed
Comment
Thanks.