Omgili - forum search, search forums  
  

Discussions about returning null

Displaying 1 - 10 out of 57,949 discussions.  
RSS Feed Options
Time Frame: (Any time)   Minimum number of replies: (2)   Minimum number of discussing users: (0)
  |  

Page: 1   2   3   4   5   6   7   8   9   10  
Keep this page open to be updated with the newest discussions automatically.
I'm wondering whether it's considered okay to do something like this. if ( p_Pointer != NULL ) { return p_Pointer; } else { return NULL; } Without the else, whatever. The point is that if the pointer is null, NULL is going to be returned, so it would ...
Started by on , 5 posts by 5 people.  
) { return p_Pointer; } else { assert(p_Pointer); return NULL; } or assert(p_Pointer); return p_PointerYou could just say: return p_Pointer; Because the if statement is superfluous in that case to if( flag == TRUE )....
I have a web service API. Some calls return objects containing text fields with information provided by the user. From both a design and a security standpoint, what are the downsides to returning null in those fields when no information has been provided...
Started by on , 6 posts by 6 people.  
There's....
returning an empty string.
A null value, a web service returning that value should ideally return null instead of an emptyI don't think there's a security issue involved with returning null vs.
Is it possible for a VB.net function with a return type of integer to return null ?
Started by on , 4 posts by 4 people.  
If you're strictly....
You'll need a return type of Nullable from an Integer returning function Public Function Example() As Integer Return Nothing End Function (Of Integer).
Only if it is defined as returning a nullable integer.
Ask your Facebook Friends
How do you return 0 instead of null when running the following command: SELECT MAX(X) AS MaxX FROM tbl WHERE XID = 1 (Assuming there is no row where XID=1)
Started by on , 7 posts by 7 people.  
MAX(X), 0, MAX(X)) AS MaxX FROM tbl WHERE XID = 1 or SELECT CASE MAX(X) WHEN NULL THEN 0 ELSE MAX(X use COALESCE ( expression [ ,...n ] ) - returns first non-null like: SELECT COALESCE(MAX(X),0.
How can I prevent inner SELECT from returning NULL (when matches no rows) and force query to fail. INSERT INTO tt (t1_id, t2_id) VALUES ( (SELECT id FROM t1 WHERE ...), (SELECT id FROM t2 WHERE ...) ); Side question: is there better way form this query...
Started by on , 5 posts by 5 people.  
You may also prefer to use SELECT....
AND t1.id IS NOT NULL AND t2.id IS NOT NULL ...
To return if SELECT returns NULL for t1.id and t2.id to be NULL then include the relevant clause in your WHERE condition ( ...
Never seen this one before. WebService.Implementation imp = new WebService.Implementation(); WebService.ImplementationRequest req = new WebService.ImplementationRequest(); return imp.GetValue(req); The object that imp returns is not null. It's returning...
Started by on , 4 posts by 4 people.  
Stackoverflow.com/questions/560370/handling-wcf-proxy-null-return-issue I suppose I should also note;DataMember()> _ Public Property SomeField() As String Get Return m_strSomeField End Get Private that the WebService should....
I've heard some voices saying that checking for a returned null value from methods is bad design. I would like to hear some reasons for this. pseudocode: variable x = object.method() if (x is null) do something
Started by on , 21 posts by 21 people.  
Returning ....
G'day, Returning NULL when you are unable to create a new.
Since throw exceptions when you don't need to.
Writes that returning null is bad design when you can instead return, say, empty array.
Good Morning All. I've been struggling with this issue for a while now, and I can't seem to wrap my head around it. So I have two tables in my Database tblDateTrans CREATE TABLE [dbo].[tblDateTrans]( [Date] [smalldatetime] NOT NULL, ) This table is an...
Started by on , 4 posts by 4 people.  
= 4) to this: AND (dbo.tblSurveySession.FK_StoreId = 4 OR dbo.tblSurveySession.FK_StoreId IS NULL.
//here assembly is loaded Assembly asm = Assembly.LoadFile(@"C:\Documents and Settings\E454930\Desktop\nunit_dll_hutt\for_hutt_proj\bin\Debug\for_hutt_proj.dll"); Type type = asm.GetType("for_hutt_proj.class1"); //returning null object instance = Activator...
Started by on , 4 posts by 4 people.  
You could try: Type type = asm.GetType("for_hutt_proj.class1", false, true); which will do a case-insensitive... .
The only things I wonder is whether the casing of the type-name is correct .
Looks fine...
Try posting more info, and use formatting.
Seems fine.
The oracle data source is returning null connection when the no of connection request is more. I have the implict cache enabled.The oracle specs says null is returned only is ConnectionWaitTimeout is set. I do not have a value set for ConnectionWaitTimeout...
Started by on , 3 posts by 3 people.  
When I explicitly specified a value the connection was waiting, even the value to 0 was giving me a null connection..
The datasource was returning null..
Page: 1   2   3   4   5   6   7   8   9   10  
More Information


Forum Search About Omgili Help Plugins Forum/Board Owners Privacy

i
In Title
In Topic
In Reply
Exclude
Boost