I am making a app that convert number to letter after scanning a barcode.
When i scan a barcode it provide me a number that
111042403413 = KJD24034M
Where I have value for KJD and M in my firebase but can't be able to separate 24034 from the scanned barcode.
Simply I want when I scanned a barcode 111042403413 and want to get KJD24034M after that scan, but I only have value of KJD and letter M, and also I cannot make all them in blocks or can't store it in firebase or any database only wanted block based.
Do not want as can save firebase tag = 111042403413 and value = KJD24024M
XS, S, M, L, XL, XXL, XXXL which already have assigned a value 1-26 alphabets, means i already have two of the values Front and Back but do not have between value which is 24034(which can be any number), but have only fixed value of front and backward data which is stored in firebase and sizes stored in the variable list.
But I don't know how to get between digits like 24034 in the barcode scanned and also not compare KJD to the barcode scanned.
Now I have value of KJD and M in Letter to Number form
I only want to separate the 24034 between the barcode and if I got the value of it, later I need to get the barcode number compared with KJD24034M(which can be any) like KJT, KWST, or more like it.
If there are only 9 codes, it's probably easier to just use a whole bunch of if-elses to check which category it falls into.
If the final letter and the numbers are always of the same length (what tim asked for), it should be possible to work from the back. Exclude those 7 things, and whatever's left is the brand code.
where
K = 11
J = 10 these numbers are from 1-26 alphabets series
D = 4
and number between Letters are same as the barcode between number.
M = 13
My every Code which is in my above post saved in firebase are made like this, but i only need to get scan barcode and get SKUCode(KJD24034M or any formed by me)
Later I want to fetch images from internet through the full SKUCode(KJD24034M or any formed by me)