Local StringVar postalCode; //Error- assigning a Number value to a String postalCode := 10025; //OK - use the type conversion function CStr //to create "10025" postalCode := CStr (10025, 0);
Local CurrencyVar cost; //Same as: cost := $10 cost := 10; Local DateTimeVar orderDate; //Same as: orderDate := CDateTime (1999, 9, 23, 0, 0, 0) orderDate := CDate (1999, 9, 23); Local NumberVar Range aRange; //Same as: aRange := 20 To 20 aRange := 20; Local NumberVar Range Array aRangeArray; //Same as : aRangeArray := [10 To 10, 20 To 25, 2 To 2] aRangeArray := [10, 20 To 25, 2];
Local NumberVar num; num := 5 + $10; //Error //OK- convert to Number type using the CDbl function num := CDbl (5 + $10) //Could also use ToNumber
SAP BusinessObjects http://www.sap.com/sapbusinessobjects/ Support services http://service.sap.com/bosap-support/ Product Documentation on the Web http://help.sap.com/ |