You are not logged in.

  • Login

Search results

Search results 1-20 of 287 for "loop".

Monday, March 20th 2006, 7:52pm

Author: Tom

Loop Function

Ich dachte ich geb mal meine Loop Function zum besten. Für Refresh-PHP-Seiten ein idealer Baustein. Das Ding ist wirklich "easy-code". Ich dachte mal für die, die vielleicht von den läßtigen IF anweisungen in Schleifen wegkommen wollen. voila: PHP Quellcode 1 2 3 function setIf($exp=bool, $setString, $setDefault="") { if($exp) return $setString; else return $setDefault; } sagen wir ich hab zwei nav Style Klassen : Cascading Style Sheets 1 2 a.nav { color:#ff0033; } a.nav_hot { color:#000; } ich ...

Saturday, March 25th 2006, 4:53pm

Author: melwood

Re: Loop Function

Quoted from ""Tom"" PHP Quellcode 1 2 3 4 5 $hot_i = 5; // Aktiver Menüpunkt while($i < 10) { echo "<a href=\"\" class=\"nav" . setIf($i==$hot_i, "_hot") . "\">" . $i++ . "</a>"; } Ich sehe noch nicht ganz den Vorteil Deiner Funktion: PHP Quellcode 1 2 3 4 5 $hot_i = 5; // Aktiver Menüpunkt while($i < 10) { echo ('<a href="" class="nav'.(($i==$hot_i)?'_hot':'').'">'.$i++.'</a>'); } Ist eigentlich auch nicht mehr zum Schreiben, oder übersehe ich da etwas? melwood

glib.MainLoop glib.MainLoop Prev PyGlibClass Reference Next glib.MainLoop glib.MainLoop — an object representing the main event loop of a PyGTK application. Synopsis class glib.MainLoop : glib.MainLoop ( context =None , is_running =0 ) def get_context () def is_running () def quit () def run () Ancestry + glib.MainLoop Description glib.MainLoop represents a main event loop. A glib.MainLoop is created with the glib.MainLoop () constructor

The for loop Bash Guide for Beginners Prev Chapter 9. Repetitive tasks Next 9.1. The for loop 9.1.1. How does it work? The for loop is the first of the three shell looping constructs. This loop allows for specification of a list of values. A list of commands is executed for each value in the list. The syntax for this loop is: for NAME [in LIST ]; do COMMANDS; done If [in LIST] is not present, it is replaced

The while loop Bash Guide for Beginners Prev Chapter 9. Repetitive tasks Next 9.2. The while loop 9.2.1. What is it? The while construct allows for repetitive execution of a list of commands, as long as the command controlling the while loop executes successfully (exit status of zero). The syntax is: while CONTROL COMMAND; do CONSEQUENT COMMANDS; done CONTROL COMMAND can be any command(s) that can exit with a success or failure status

The until loop Bash Guide for Beginners Prev Chapter 9. Repetitive tasks Next 9.3. The until loop 9.3.1. What is it? The until loop is very similar to the while loop, except that the loop executes until the TEST COMMAND executes successfully. As long as this command fails, the loop continues. The syntax is the same as for the while loop: until TEST COMMAND; do CONSEQUENT COMMANDS; done The return status is the exit status of the last command executed in the CONSEQUENT COMMANDS list, or zero if n...

Loops and Branches Advanced Bash Scripting Guide: Prev Next Chapter 11. Loops and Branches What needs this iteration, woman? Shakespeare, Othello Table of Contents 11.1. Loops 11.2. Nested Loops 11.3. Loop Control 11.4. Testing and Branching Operations on code blocks are the key to structured and organized shell scripts. Looping and branching constructs provide the tools for accomplishing this

I/O redirection and loops Bash Guide for Beginners Prev Chapter 9. Repetitive tasks Next 9.4. I/O redirection and loops 9.4.1. Input redirection Instead of controlling a loop by testing the result of a command or by user input, you can specify a file from which to read input that controls the loop. In such cases, read is often the controlling command. As long as input lines are fed into the loop, execution of the loop commands continues

Wednesday, July 26th 2006, 9:59am

Author: phax

Threads , Borland und Ausgaben....??

Thread2 sagt zu Thread1 "Speichere den String 'tu was' in der globalen Variablen X" Thread1 checkt im MessageLoop ob die Variable X nicht null. Wenn ja, dann wird MainForm->Label->Caption = X; gerufen und X wieder auf null gesetzt. Ist aber eine kranke Lösung. Sicherer ist es zumindest wenn du statt der Variablen "X" eine List<String> verwendest, in die du hinten anfügst und vorne ausliest. Ich weiß nicht in wie weit du in den MessageLoop eingreifen kannst/willst. Ansonsten lässt sich das doch s...

Thursday, February 16th 2006, 6:39pm

Author: Dragon4048

Abstand rechts ändern

sachma kannst du mir dabei mal helfen ich möchte gerne meine news vom forum auf meiner seite anzeigen klappt auch alles wunderbar allerdings habe ich das Problem das er das ein bissel nach Rechts anzeigt wie kann ich das ändern das er es auch ganz links anzeigt? Hier zum anschauen http://board.stagate.info/ssi.php?m=posts&a=forumtopics&forum=2&order=date&start=0&show=10&export=html" ich habe alles mögliche versucht doch weiss ich leider nicht weiter so sieht die datei die ich bearbeite von innen...

Friday, February 17th 2006, 5:57pm

Author: Dragon4048

Zwischen Seiten blättern [SQL]

habe ein weiteres Prob... wiie mache ich das das er blättert meine startseite ist nun 5 km lang PHP Quellcode 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 <?php /* Smarty version 2.6.3, created on 2005-12-27 14:24:02 compiled from forumtopics.tpl */ ?> <?php require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPA...

PyGObject Reference Manual PyGObject Reference Manual Next PyGObject Reference Manual for PyGObject version 2.19.0 2009 05 14 Abstract This reference describes the classes of the python gobject module. Table of Contents Introduction Reference Page Format PyGlibClass Reference glib.MainContext — an object representing a set of event sources to be handled in a glib.MainLoop . glib.MainLoop — an object representing the main event loop of a PyGTK application. glib Functions

.1. Getting started with gawk 6.2. The print program 6.3. Gawk variables 6.4. Summary 6.5. Exercises 7. Conditional statements 7.1. Introduction to if 7.2. More advanced if usage 7.3. Using case statements 7.4. Summary 7.5. Exercises 8. Writing interactive scripts 8.1. Displaying user messages 8.2. Catching user input 8.3. Summary 8.4. Exercises 9. Repetitive tasks 9.1. The for loop 9.2. The while loop 9.3. The until loop 9.4. I/O redirection and loops 9

Sunday, August 6th 2006, 2:14pm

Author: panzerknacker

php if Abfrage vor Flash Bild

Hallo, da gibt es eine js-Datei, die ich anhänge. Diese in einen Ordner (javascript) rein und im Header deiner Datei einbinden (etwa so: <script src='javascript/flcheck_v2.js' type='text/javascript'></script>). Zusammen mit folgendem Code (deinen Bedürfnissen angepasst!) auf deiner Seite zeigt es entweder das Flash oder ein Ersatzbild an. Das Ersatzbild sollte logischerweise dieselben Maße wie das swf haben und an dieselbe Position. Falls Javascript deaktiviert ist, sorgt das <noscript> im Code ...

. Dedication For Anita, the source of all the magic Table of Contents Part 1. Introduction 1. Shell Programming! 2. Starting Off With a Sha Bang Part 2. Basics 3. Special Characters 4. Introduction to Variables and Parameters 5. Quoting 6. Exit and Exit Status 7. Tests 8. Operations and Related Topics Part 3. Beyond the Basics 9. Another Look at Variables 10. Manipulating Variables 11. Loops and Branches 12. Command Substitution 13

has a for statement, in two flavors (see §2.4.5 ). The condition expression of a control structure can return any value. Both false and nil are considered false. All values different from nil and false are considered true (in particular, the number 0 and the empty string are also true). In the repeat – until loop, the inner block does not end at the until keyword, but only after the condition. So, the condition can refer to local variables declared inside the loop block. The return statement is...

. Repetitive tasks The for loop How does it work? Examples The while loop What is it? Examples The until loop What is it? Example I/O redirection and loops Input redirection Output redirection Break and continue The break built in The continue built in Examples Making menus with the select built in General Submenus The shift built in What does it do? Examples Summary Exercises 10. More on variables Types of variables General assignment of values Using the declare built in Constants Array variabl...

Wednesday, December 14th 2005, 6:00pm

Author: Azn_ki

[VB6] ADSI + LDAP + SQL-Dialekt

also Vorname Nachname Emailadresse Telefonnummer bei Description gab es eine Fehlermeldung-> Type mismatch finde ich jetzt einwenig komisch, hab dann mal den datentyp variant genommen.. und die fehlermeldung bleibt.. bei physicalDeliveryOfficeName kommt irgendwie gar nichts.. auch keine Fehlermeldung VisualBasic Quellcode 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 Dim Base$, Filter$, Domain$, Depth$, Query$, iElement%, Attribs$ cnt_Accounts = 0 Base = "<" & "LDAP://X...

Friday, July 7th 2006, 7:13pm

Author: hornetracer83

Frage zum Aufbau eines Programms

hi loop! danke erstmal für deine antwort. gehen wir einmal beim kartenspiel vom poker aus. und da meinte ich mit hauptteil eigentlich ein servlet, also z.b. die verwaltung der karten, welche den einzelnen spielern(also den applets) gegeben werden. so könnte man auch nicht unbedingt den anderen spielern durch irgendwelche cheats in die karten gucken, da ja jeder spieler ein eigenes applet hat. ja, ich würde es dann als client-server-app machen wollen. also ich habe auch schon mal gehört, dass ser...

Tuesday, February 14th 2006, 3:43pm

Author: petri

Exel- Daten aus mehreren Exeldatein zu einer zusammenzufügen

Halli Hallo, ich habe folgendes Problem. Ich habe mehrere Exeldatein (*.xls) mit nur einem Arbeitsblatt (worksheet), welche ich zu einer eizigsten Datei zusammenfügen möchte. _____________________________________________________________ Hier schon mal das Makro: Source code 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 Sub CopyValues() Dim vFile As Variant Dim iRow As Integer Dim sPath As String, sFormula As String, sMem As String, sRange As String sPath ...

powered by: