Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Programmieren allgemein (https://www.delphipraxis.net/40-programmieren-allgemein/)
-   -   Copy in JavaScript ? (https://www.delphipraxis.net/113872-copy-javascript.html)

Nils_13 16. Mai 2008 07:37


Copy in JavaScript ?
 
Hi,

wie lautet der Befehl Copy (Pascal) in JavaScript ?

mkinzler 16. Mai 2008 07:54

Re: Copy in JavaScript ?
 
Code:
<string>.substring()

Nils_13 16. Mai 2008 07:56

Re: Copy in JavaScript ?
 
Danke :)

rawsoul 16. Mai 2008 08:11

Re: Copy in JavaScript ?
 
Mal ein wenig am Thema vorbei:
Will .SubString() als Parameter Startindex sowie Endindex, oder Startindex und Länge, so wie in Delphi?
Gibt es sowas auch für Reguläre Ausdrücke?

Matze 16. Mai 2008 08:35

Re: Copy in JavaScript ?
 
Zitat:

Zitat von rawsoul
Will .SubString() als Parameter Startindex sowie Endindex, oder Startindex und Länge, so wie in Delphi?

Ich zitiere von w3schools.com:

Code:
stringObject.[b][color=#ff0000]substr[/color][/b](start,length)

Parameter      Description
start          Required. Where to start the extraction. Must be a numeric value
length         Optional. How many characters to extract. Must be a numeric value.
Code:
stringObject.[b][color=#ff0000]substring[/color][/b](start,stop)

Parameter      Description
start          Required. Where to start the extraction. Must be a numeric value
stop           Optional. Where to stop the extraction. Must be a numeric value


Alle Zeitangaben in WEZ +1. Es ist jetzt 02:37 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