Hello,
I have the following problem.
I have a bit string (0 and 1) with date values
How can I check with B4X whether a particular date is contained therein.
this is done via the RegExpObject via Javascript.
https://developer.mozilla.org/de/docs/Web/JavaScript/Reference/Global_Objects/RegExp/test
The bit string looks like
011111001111000111100011111001111100111110011111001111100111110011111001111100111110011111001111100111110001111001111100111110011111001111100111010011111000111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001011100111110011111001111100111110011111000000000000000000000
With Javascript it looks like
(Only a cutout)
can someone help me?
I have the following problem.
I have a bit string (0 and 1) with date values
How can I check with B4X whether a particular date is contained therein.
this is done via the RegExpObject via Javascript.
https://developer.mozilla.org/de/docs/Web/JavaScript/Reference/Global_Objects/RegExp/test
The bit string looks like
011111001111000111100011111001111100111110011111001111100111110011111001111100111110011111001111100111110001111001111100111110011111001111100111010011111000111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001011100111110011111001111100111110011111000000000000000000000
With Javascript it looks like
B4X:
if(/^[0-1]+$/.test(vts)){
if(zns[a][5].length>=dayDiff && zns[a][5][dayDiff]==1){
hit=true;
document.writeln("Datum: ", heute.getDate(), ".", heute.getMonth()+1, "."+heute.getFullYear(), ": ", zns[a][3], " -> ", zns[a][4], "<br />");
document.writeln ("<br />");
}
}
(Only a cutout)
can someone help me?