Skip to Content
Dec 10, 2019 at 03:00 PM

Question about number format in variable



I have a problem with variables in SAP

I try to take amount in variable with this code

B = session.findById("wnd[0]/usr/txtBSEG-WRBTR").text

C = CDbl(B)

i need number variable

and i have error "Type mismatch. When i try to use Google i found that is some problem in Regional settings.

Is some way to take variable with ither method?

On example something like this

B = session.findById("wnd[0]/usr/txtBSEG-WRBTR").number

Thanks you for help.