[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

1133.0. "is NULL a valid widget name?" by 28713::B_BRADACH () Tue Jul 18 1989 17:11

    Is it valid to pass NULL as the name of a widget in a widget creation
    routine or should this be a null string ("")???
    
    I have a customer who is attempting to write an application which will
    run on ULTRIX/VMS/RISC.  Passing NULL as the name for some widgets
    works just fine on ULTRIX and RISC but not in some instances on VMS.
    For instance creating a message box or menu results in an accvio.
    
    What I want to know is whether or not NULL is a valid value for a
    widget name or is "" the way to go.  He wants to be consistent
    throughout and to be sure that this is not going to change later.
    
    Any ideas??
    
    bernie
    csc/cs
    

T.RTitleUserPersonal
Name
DateLines
1133.1LEOVAX::TREGGIARIWed Jul 19 1989 07:534
    NULL is not valid.  They should use "".
    
    Leo

1133.2FLUME::dikeWed Jul 19 1989 08:384
I'm surprised NULL works on a PMAX.  Having NULL as a string value is
begging for a crash.
				Jeff

1133.3thanks for the quick responsesCSC32::B_BRADACHWed Jul 19 1989 10:4712
    RE: .1 and .2
    thanks for the responses.  The customer says it does work on the pmax.
    He just found it strange that it is not consistent across widgets which
    he has found that he can use under VMS.  Since I don't have his code I
    can't verify his statement.
    
    Thanks for the responses.
    
    bernie
    csc/cs