Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BUG: only null values in SELECT member can to used
Message
From
04/05/2004 10:41:07
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00900095
Message ID:
00900739
Views:
10

Fabio,

If the object conditionally constructs then your WITH createobject() will throw an error. This code will not error:

myRef = createobject()
if ( vartype( m.myRef ) == "O" )
with m.myRef
endwith
endif


The previous code is correct only if vartype( m.myRef ) != "O"
is a aspected valid condition, otherwise it must fire a error.

This code can resolve this situation:
TRY
  WITH createobject()
  ENDWITH 
CATCH
ENDTRY
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform