Welcome! Log In Create A New Profile

Advanced

How to initialize a string to Null

Posted by Michael 
Michael
How to initialize a string to Null
June 10, 2009 03:55AM
Hi All:
I have a file (table in MS-SQL) with a string field which should be NULL when it's created. I'm using:

sField = Null

but it doesn't work (the field is created empty, but not Null).
If I use a hidden edit control with the "Return NULL if empty" option set, everything works fine.

Shouldn't both cases work in the same way?

Thanks;
Michael
Louis Verbraak
Re: How to initialize a string to Null
June 10, 2009 08:54AM
Hello Michael,

Did you set the concerning settings in your analysis.
Filedescription: NULL supported
Itemdescription: Default to NULL

HTH.
Milton
Re: How to initialize a string to Null
June 10, 2009 09:55PM
Michael,

I found the same problem but resolved it by using

sField..Null=true

which worked fine.

Milton
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: