Verwenden von Char zum Vergleichen von numerischen und ZeichenwertenHallo,
Ist es möglich, Zahlen- und Zeichenwerte zu vergleichen?
Ich möchte zwei Spalten (gleiche oder unterschiedliche Werte) vergleichen. Eine Spalte hat ein numerisches Datum und eine hat ein Zeichendatum und da ich nur Teile davon vergleichen muss, möchte ich eine Teilzeichenfolge verwenden. Das folgende Skript wird ausgeführt, aber es liefert mir nicht das richtige Ergebnis, da alles anders zu sein scheint (was nicht der Fall ist). Verwende ich Char falsch?
If( Substr( Char( :Name( "Date/Time of Specimen Collection" ) ), 1, 10 ) == Substr( :Name( "Start Date/Time of Visit" ), 1, 10 ),
"identical",
"different"
)
Ich weiß, dass ich das Format von "Datum/Uhrzeit der Probenentnahme" ändern kann, aber ich ziehe es vor, dies nicht zu tun, da dies andere Teile meines Skripts verkomplizieren würde.
Vielen Dank im Voraus
SkripterstellungBetreff: Verwenden von Char zum Vergleichen von numerischen und ZeichenwertenUm zu verstehen, was passiert, erstellen Sie eine temporäre Spalte mit
Char( :Name( "Date/Time of Specimen Collection" ) )
als Formel. Wahrscheinlich müssen Sie die Funktion format(...) (anstelle von char(...)) verwenden, um das genaue Datums-/Uhrzeitformat anzugeben, das Sie benötigen, um alle Werte und Trennzeichen korrekt zu erhalten. Sie können die verfügbaren Formatnamen sehen, wenn Sie den Spalteneigenschaften-Dialog verwenden und sich den Abschnitt format...date ansehen.
Betreff: Verwenden von Char zum Vergleichen von numerischen und ZeichenwertenIch verstehe dein Argument. Ich kann es jedoch mit dem Format nicht richtig hinbekommen.
Gibt es eine Möglichkeit, dies zu tun, ohne zusätzliche Spalten zu erstellen?
Betreff: Verwenden von Char zum Vergleichen von numerischen und ZeichenwertenJa. Was ist das Format des Zeichendatums?
Betreff: Verwenden von Char zum Vergleichen von numerischen und ZeichenwertenIm beigefügten Tabellenausschnitt versuche ich, den Datumsteil der Spalte "Datum/Uhrzeit der Probenentnahme" (numerisch, jjj-mm-ttThh:mm:ss) mit der Spalte "Beginn Datum/Uhrzeit des Besuchs" (Zeichen , nominell)
Gibt es eine Funktion, die es jmp ermöglicht, die numerischen Werte als Zeichen (natürlich als Datum formatiert) zu sehen, sodass ich die Teilzeichenfolge für den Datumsteil davon verwenden kann?
Betreff: Verwenden von Char zum Vergleichen von numerischen und Zeichenwerten
Using the format() function; the numeric date is in year-month-day for 7 February; the character format is in day/month/year.Using the format() function; the numeric date is in year-month-day for 7 February; the character format is in day/month/year.Using the format() function; the numeric date is in year-month-day for 7 February; the character format is in day/month/year.Using the format() function; the numeric date is in year-month-day for 7 February; the character format is in day/month/year.Using the format() function; the numeric date is in year-month-day for 7 February; the character format is in day/month/year.Using the format() function; the numeric date is in year-month-day for 7 February; the character format is in day/month/year.Using the format() function; the numeric date is in year-month-day for 7 February; the character format is in day/month/year.Using the format() function; the numeric date is in year-month-day for 7 February; the character format is in day/month/year.Using the format() function; the numeric date is in year-month-day for 7 February; the character format is in day/month/year.Using the format() function; the numeric date is in year-month-day for 7 February; the character format is in day/month/year.Using the format() function; the numeric date is in year-month-day for 7 February; the character format is in day/month/year.Using the format() function; the numeric date is in year-month-day for 7 February; the character format is in day/month/year.Using the format() function; the numeric date is in year-month-day for 7 February; the character format is in day/month/year.Using the format() function; the numeric date is in year-month-day for 7 February; the character format is in day/month/year.Verwenden der Funktion format(); das numerische Datum ist in Jahr-Monat-Tag für den 7. Februar; das Zeichenformat ist Tag/Monat/Jahr.
Betreff: Verwenden von Char zum Vergleichen von numerischen und ZeichenwertenMöglicherweise benötigen Sie dieses Format:
the T format is an ISO standard.the T format is an ISO standard.the T format is an ISO standard.the T format is an ISO standard.the T format is an ISO standard.the T format is an ISO standard.the T format is an ISO standard.the T format is an ISO standard.the T format is an ISO standard.the T format is an ISO standard.the T format is an ISO standard.das T-Format ist ein ISO-Standard.
Betreff: Verwenden von Char zum Vergleichen von numerischen und ZeichenwertenOder sogar das:
You don't need substr for the yyy-mm-dd format; it already returns just the 10 characters you need.You don't need substr for the yyy-mm-dd format; it already returns just the 10 characters you need.You don't need substr for the yyy-mm-dd format; it already returns just the 10 characters you need.You don't need substr for the yyy-mm-dd format; it already returns just the 10 characters you need.You don't need substr for the yyy-mm-dd format; it already returns just the 10 characters you need.You don't need substr for the yyy-mm-dd format; it already returns just the 10 characters you need.You don't need substr for the yyy-mm-dd format; it already returns just the 10 characters you need.Sie brauchen substr nicht für das Format yyy-mm-dd; Es gibt bereits nur die 10 Zeichen zurück, die Sie benötigen.
Betreff: Verwenden von Char zum Vergleichen von numerischen und ZeichenwertenVielen Dank - das probier ich mal aus 