This article describes how to use the Round-Trip "R" Format Specifier in LightSwitch Visual Studio 2012.It guarantees that a numeric type value that is converted into a string can be parsed back into the same numeric type value.
Note: This format can only be supported for the Single, Double and Biginteger data types.The following describes how to create a sample showing how to use the Round-Trip "R" Format Specifier on a Screen.Step 1Open the LightSwitch Application in Visual Studio 2012 and go to the Solution Explorer.Right-click on "Data Sources" and choose "Add Table".The table appears in the table designer window. Insert the records in the following table.Step 2Now once again go to the Solution Explorer, right-click on "Screens" and choose "Add Screen".The Add New Screen dialog box appears. Select "Editable Grid Screen" from the Screen Template, inside the screen information, choose "Student" under screen data and provide a name to the Screen and click the "OK" button.The Screen Designer appears as shown below.Step 3Press F5 to run the application. Provide the information. You will get the following output.Step 4Now stop debugging the application. From the Table designer select the "Fees" record as shown in the figure below.Then go to the Format Pattern of Property window in the table designer and enter "R" in the format pattern as shown below.Once again press F5 to run the application. This time we will get the following output.
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: