AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren

Java string to delphi

Ein Thema von pastra · begonnen am 25. Jun 2006 · letzter Beitrag vom 25. Jun 2006
Antwort Antwort
pastra

Registriert seit: 23. Jun 2006
21 Beiträge
 
#1

Java string to delphi

  Alt 25. Jun 2006, 13:29
Hi, does anyone know the how to do the following in delphi.

JAVA:
string + '\0' What does \0 mean in java?

Thank's to everyone!
  Mit Zitat antworten Zitat
CalganX

Registriert seit: 21. Jul 2002
Ort: Bonn
5.403 Beiträge
 
Turbo Delphi für Win32
 
#2

Re: Java string to delphi

  Alt 25. Jun 2006, 13:30
Hi,
I suppose it means the ASCII-/Unicode-Character 0. In Delphi it would be
Delphi-Quellcode:
chr(0);
// or
#0
Chris
  Mit Zitat antworten Zitat
pastra

Registriert seit: 23. Jun 2006
21 Beiträge
 
#3

Re: Java string to delphi

  Alt 25. Jun 2006, 13:33
Zitat von Chakotay1308:
Hi,
I suppose it means the ASCII-/Unicode-Character 0. In Delphi it would be
Delphi-Quellcode:
chr(0);
// or
#0
Chris
Hi!
Okay but what char. should reprecent chr(0) then? Don't they start at 1 and goes forward to 256? Or am i Mistaken?
  Mit Zitat antworten Zitat
Benutzerbild von glkgereon
glkgereon

Registriert seit: 16. Mär 2004
2.287 Beiträge
 
#4

Re: Java string to delphi

  Alt 25. Jun 2006, 13:34
It goes from 0 to 255

0 normally represents the end of a string in C or java as far as i remember...
»Unlösbare Probleme sind in der Regel schwierig...«
  Mit Zitat antworten Zitat
Waldteufel
(Gast)

n/a Beiträge
 
#5

Re: Java string to delphi

  Alt 25. Jun 2006, 13:35
Zitat von pastra:
Okay but what char. should reprecent chr(0) then? Don't they start at 1 and goes forward to 256? Or am i Mistaken?
Slightly. It's 0 to 255

>> http://en.wikipedia.org/wiki/ASCII <<

(Nanu? Vorhin war das Posting da oben noch nicht da... )
  Mit Zitat antworten Zitat
pastra

Registriert seit: 23. Jun 2006
21 Beiträge
 
#6

Re: Java string to delphi

  Alt 25. Jun 2006, 13:36
Zitat von glkgereon:
It goes from 0 to 255

0 normally represents the end of a string in C or java as far as i remember...
Okay then

I will try to use the chr(0) then and see how it works out..

Thanks
  Mit Zitat antworten Zitat
Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
Ansicht

Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 01:27 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz