List of Exercises
Exercise 3: Creating Distinct Data Types and Casts, continued
|
Create the three remaining casts.
|
Enter the following information in the New Cast wizard.
Cast Property
|
integer to temperature Value
|
CTemp to FTemp Value
|
FTemp to CTemp Value
|
Cast from type
|
integer
|
CTemp
|
FTemp
|
Cast to type
|
temperature
|
FTemp
|
CTemp
|
Cast should be called for
implicit type conversion
|
Yes
|
Yes
|
Yes
|
Cast requires a user defined
cast support function
|
Yes
|
Yes
|
Yes
|
Support routine name is:
|
temperatureCast
|
FTempCast
|
CTempCast
|
Grant execute privileges
|
Grant execute privileges
|
Grant execute privileges
|
Grant execute privileges
|
Choose Project Save to save your project.
Copyright © 1998, Informix Software, Inc. All rights
reserved.
|