gerar código

Discussion in 'JavaScript' started by Rita G, Mar 5, 2013.

  1. #1
    tenho uma lista de projetos enumerados:
    1.1 manejo
    1.2 conservação do solo
    2.1 desenvolvimento de genótipos...

    uma lista de programas:
    01 fruticultura
    02 cafeicultuira...

    uma lista de frutas enumeradas:
    001 banana
    002 maçã
    003 limão
    004 abacaxi

    e preciso gerar um código dos itens selecionados em um campo, separados por ponto por ex:

    1.1.01.001
    1.2.02.002

    Alguém poderia me ajudar?
     
    Rita G, Mar 5, 2013 IP
  2. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #2
    1) Em Inglês seria muito melhor, pois quase todos lendo este site entende Inglês.

    2) Com que linguagem de programação?

    3) Desculpem a má tradução. Eu estou a utilizar Babylon para traduzir meu inglês para o Português.
     
    Rukbat, Mar 5, 2013 IP
  3. Rita G

    Rita G Greenhorn

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #3
    Php, Obrigada
     
    Rita G, Mar 7, 2013 IP
  4. Rita G

    Rita G Greenhorn

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #4
    the script does the following:

    I have a list of projects listed:
    1.1 management
    02.01 soil conservation
    02.01 development of genotypes ...

    a list of programs:
    01 fruit
    02 cafeicultuira ...

    a list of fruit listed:
    001 banana
    002 apple
    003 lemon
    004 pineapple

    and need to generate a code of selected items in a field separated by a dot eg

    1.1.01.001
    1.2.02.002

    If you have other code that you can share with me, I will love!
    Thank you
     
    Rita G, Mar 7, 2013 IP