Hi all,
I have two columns with data type nvarchar that and int.
The one with nvarchar holds data type like D1234.
Is there a way to ignore D and only copy 1234 to the column with int data type?
Thanks for any help,
Abrahim
Hi all,
I have two columns with data type nvarchar that and int.
The one with nvarchar holds data type like D1234.
Is there a way to ignore D and only copy 1234 to the column with int data type?
Thanks for any help,
Abrahim
What happens when you set the mask to #?
Marcel,
I didn’t mask to #.
Do you have any example of using mask to #?
Thanks,
Abrahim
That’s simple, have a look in the properties. You will find the ‘format’ property. When you select the field it bevomes a combobox with sample masks…
And, just maybe, the docs can help you. Under the help menu, index tab ‘Field properties, format [property’…
Have fun. Hope this helps,
Marcel
Thanks Marcel!
Abrahim
You could try a Regex Expression to strip out any non-numerical characters as you assign the int column… Regex is a bit scary at first but immensely powerful…
Check the Servoy docs.
Regex is great, regex rule. I am a huge fan but in the case you want to check the input real time (without having a keydown or whatsoever event) they are not really the solution I guess…
The question is about two columns, not two fields…
So RegEx may be the best solution.
S* you are right. I recentently started to take a new class ‘how to read effectively’. I think I overdid it only reading the first and last word