@BrigitteL - I do not understand how you are deriving "VarTempTextInput",
However, before getting into that. As I understand it, you want to display formatting of the Data Card Value to display numbers with a thousand separator.
If that is all you want to do, I suggest we took a step bac, and focused on what you're trying to do, rather than trying to fix your solution:
It is not currently possible to apply number formatting to a Text Input control. Consider the following workaround:
1. Remove the DataCard from your Form
2. Add the DataCard back into your Form
3. Unlock the DataCard
4. Inside your DataCard, add a Label control.
5. Adjust the height, width and position properties so that it matches the DataCardValue field.
6. In the Text property of the Label, use:
Text(Value(DataCardValue1.Text),"#,#")
On the Visible property of the Label, use:
'Your Form'.Mode = FormMode.View
For the Visible property of the DataCardValue, use:
'Your Form'.Mode = FormMode.Edit