Search Result

Collapse
12 results in 0.0015 seconds.
Keywords
Members
Tags
loops
  •  

  • JenniferM
    started a topic Creating a string by looping through records

    Creating a string by looping through records

    I sort of know what I need to do, I just can't seem to find any references online that are giving me exactly what I need... Or maybe I'm just not understanding it (which is probably likely).

    So here's what I've got:
    I have 3 separate tables (TblContactInfo and TblMailingList which hold contact information, and TblEntries with primary key ID that holds the data for each report I want to create and send). TblContactInfo holds...
    See more | Go to post

  • luke noob
    started a topic how do i replace pixels colors with my own colors ?
    in PHP

    how do i replace pixels colors with my own colors ?

    Hi I am new to the GD library and am stuck on something and wondered if you could help me.

    I am using PHP and GD.

    I have an array with 40 predefined hexadecimal colors in it.

    I have an image that is 6 x 6 pixles, and I would like to loop through the pixles, swapping the colours in the image for my predefined colors.

    if say pixle 1 was already in my predefined colors i would like to leave...
    See more | Go to post

  • How to fix excel script that freezes in lloop?

    Writing this code to help analyze and re-organize our e-mail promotions and every time I try to run the script, it just freezes up Excel (infinite loop somewhere?). It's pulling data from another sheet ("Promos") in the same workbook.

    Code:
    Sub Update_Campaign_Breakdown()
    Dim rownum As Integer
    Dim campaign As String
    Dim newrows As Integer
    Dim i As Integer
    rownum = 2
    Do Until IsEmpty(Sheets("Promos").Cells(rownum,
    ...
    See more | Go to post

  • Can I get an example of a DB2 Stored Procedure with Loop & Commit?

    I'm trying to create a DB2 stored procedure that will loop through a delete statement and commit after every 5000 records. Continuing to delete until the statement is satisfied and all records which fit the criteria are deleted from the table.

    Here is an example of my statement:
    Code:
    DELETE FROM (SELECT * FROM tablename WHERE date_stamp = CURRENT date);
    Thank you.
    Roy
    See more | Go to post

  • How to create a textbox button that will repeat contents of textbox?

    I need to write an HTML page that uses an input text box to ask the viewer for a phrase. The page should also contain a button. When the button is pressed, the page should display the input phrase 10 times. The HTML page should use a JavaScript function to write out the phrase. (So if the user enters "Hello World", the page should display "Hello World" 10 times.)
    See more | Go to post

  • Andrew Hulting
    started a topic VBA and Visio

    VBA and Visio

    I have code in Visio that reads a access table, and creates a new tab for each item in the field. I want to have the code look for existing tabs and move to the next one if the tab exists. I guess it would be a nested loop but cannot seem to get it to work. Any help would be greatly appreciated.

    Andrew

    Code:
    Public Function fnImportText()
    Dim objAccess As AccessObject
    Dim Accapp As Access.Application
    ...
    See more | Go to post

  • Charles Sherman
    started a topic How to print off answers from For loops
    in Java

    How to print off answers from For loops

    I am writing a program that I have to take the length of a rectangle (1-10) and multiply them by the width(1-10) I am using a for loop and this is what I have so far
    Code:
      public class area
      {
      public static void main(Strings args[])
      {
      int height;
      int width;
      int area;
      int i;
      int e;
      for (i=1; i>=11; i++);
      height = i;
      for (e=1; e>=11; e++);
    ...
    See more | Go to post

  • luke noob
    started a topic How to shuffle an array?
    in PHP

    How to shuffle an array?

    Can anyone show me an example of how to shuffle an array?
    See more | Go to post
    Last edited by Niheel; Oct 19 '10, 06:18 PM. Reason: Not needed

  • safra
    started a topic display an error msg saying wrong format.
    in Java

    display an error msg saying wrong format.

    hi everybody..
    i need help with my assignment.i want to display a error message saying that the user has inputed a string where an integer is needed.because when i enter "h" (for an example) in the x coordinate field the system crashes.i want to display an error message instead.

    Code:
    /**
     * A program that simulates an ant taking a step on a sheet of paper. stage 2
     * 
     * @author (safra)
     * @version
    ...
    See more | Go to post
    Last edited by Frinavale; Aug 31 '10, 06:45 PM. Reason: Please post code in [code] ... [/code] tags in the future. Added code tags.

  • Vik0711
    started a topic Struggling with arrays and for loops

    Struggling with arrays and for loops

    Hiya,
    I am a student and I am struggling with some arrays I have. There are three arrays, all of which have been declared, two contain numbers, and the third contains names. I need to add the two with numbers together and display with the name. The results of the two numbers added up, needs to be stored in another array.

    Please help, I have been up all night, trying everything, looked everywhere, just a hint is all I need, a big...
    See more | Go to post

  • Linux - How to call lines from a file in a for loop???

    Hi,

    I am new to Linux and am trying to pull several lines from one file to modify them.

    I have written a file table.txt...

    Code:
    [lg45@dev64-mgmt ~]$ cat table.txt
    
    Angiogenin 10 25793633 25815393
    Alpha-actinin 28 7893500 7941168
    I want to pull out column 3 of each line and loop through them all adding 500,000bp.

    I know that i can use awk to call...
    ...
    See more | Go to post

  • abrown07
    started a topic Continuation of a program in C
    in C

    Continuation of a program in C

    Hi I have the following code:



    #include<stdio. h>
    #include<math.h >

    int main(void)

    {

    double Population,capa city,initial;
    int generations;
    float growth;


    printf("Please give the carrying capacity of the environment: ");
    scanf("%lf", &capacity);

    printf("Please...
    See more | Go to post
Working...