Issue 5836 - StarBasic IsObject()
Summary: StarBasic IsObject()
Status: CLOSED FIXED
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: PC Linux, all
: P3 Trivial
Target Milestone: ---
Assignee: ab
QA Contact: issues@api
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-06-14 13:01 UTC by tfanabe
Modified: 2013-02-24 21:07 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description tfanabe 2002-06-14 13:01:43 UTC
In the StarBasic IsObject() don't running and so I must use VarType() or
TypeName() function.

This i smy code:

REM  *****  BASIC  *****

sub Test
'***********************************************************
' Se vNotObj viene dichiarata come qualunque tipo
' (tranne il tipo Object), la funzione IsObject(vNotObj)
' genera l'errore: "variabile dell'oggetto non impostata".
' Se la variabile non viene dichiarata l'errore NON
' viene generato
' Se la variabile non viene dichiarata ma punta effettivamente ad un
oggetto,
' l'errore NON viene generato
'***********************************************************

dim vNotObj
dim bResult as boolean


 bResult = IsArray(vNotObj)
 print "Is Array? " & bResult ' ok

 bResult = IsEmpty(vNotObj)
 print "Is Empty? " & bResult '  ok

 bResult = IsNull(vNotObj)
 print "Is Null? " & bResult  '  ok

'soluzione 1
 bResult = (TypeName(vNotObj) = "Object")
 print "Is Object? " & bResult '  ok

'soluzione 2
 bResult = (VarType(vNotObj) = 9)
 print "Is Object? " & bResult '  ok

'***********************************************************
 bResult = IsObject(vNotObj)
 print "Is Object? " & bResult  'ERROR !!!
'***********************************************************

end sub
Comment 1 ooo 2002-07-04 17:30:31 UTC
not an API issue - looks like StarBasic runtime
Comment 2 ab 2002-10-07 16:12:56 UTC
The problem is fixed in the meantime.
(Basic/source/runtime/methods.cxx 1.41)
Comment 3 ab 2005-04-06 11:55:33 UTC
Closed