Hi, I'm trying to do a simple exercise with PowerApps and I'm blocked. Would be great if someone can give some hints.
I've a TextInput box where I type in a number (Updated TextInput1.Format = Number).
Then I'have a button where I add the number to a column [MyNumber] in SharePoint List [MySPList]
I've tried to use PATCH directly but it failed
Patch(MySPList,Defaults(MySPList),MyNumber:TextInput1})
I understand I need to do a previous step storing the value from the TextInput1 in a Var and then do the Patch but it doesn't work either. In this case the problem is the var is stored as a "control" type instead of a number.
UpdateContext({TextInputVar:TextInput1);
Patch(MySPList,Defaults(MySPList),MyNumber:TextInputVar);
If I change TextInput1.Format = Text then it stores the number but as a "text" type and therefore the Patch doesn't work.
Image below with an example of the two types I get.

Any idea on how can I solve this Issue? I believe it should be something really simple but It seems I go round in circles...
Many thanks