[NEWSboard IBMi Forum]
  1. #1
    Registriert seit
    May 2002
    Beiträge
    2.642

    cl declare variable

    Hallo Forum,
    kann mir jemand den Unterschied bei declare variable von value mit Hochkomma und ohne Hochkomma nennen ?

  2. #2
    Registriert seit
    Aug 2004
    Beiträge
    923
    Hello,

    jetzt wo Du fragst, ich hatte mich auch immer gewundert.
    Habe das hier im Handbuch dazu gefunden:

    PHP-Code:
    Note that if this VALUE parameter had not been enclosed in apostrophes
    it would have been correctbecause without the apostrophes 
    it would be translated to uppercase automatically

    This error frequently occurs when the parameter is passed as 
    input to a procedure or program from a display as a character string
    and 
    the display entry is made in lowercase
    NoteThe above paragraph does not take into account the 
    fact that conversion to uppercase is language dependent

    REMEMBERRelying on the system to convert values to uppercase 
    may produce unexpected results

    In diesem Sinne

    k.

  3. #3
    Registriert seit
    May 2002
    Beiträge
    2.642

    Declare Variable

    Hallo Kümpi,
    vielen Dank für Deine Profihafte Hilfe und Erklärung. Auch schon
    bei meiner vorherigen Anfrage kam genau die richtige Antwort.
    Einen schönen Tag aus Baden !

Similar Threads

  1. num. CL Variable in Alpha umsetzen?
    By ExAzubi in forum IBM i Hauptforum
    Antworten: 6
    Letzter Beitrag: 03-01-07, 14:31
  2. Variable Zahlenkonvertieren
    By Xanas in forum NEWSboard Programmierung
    Antworten: 4
    Letzter Beitrag: 28-08-06, 12:21
  3. Übergabeparameter im CL Script
    By bo1 in forum IBM i Hauptforum
    Antworten: 3
    Letzter Beitrag: 23-06-06, 15:00
  4. String mit HexInhalt muss als Hex-Wert in Variable
    By cheffe1008 in forum NEWSboard Programmierung
    Antworten: 7
    Letzter Beitrag: 16-05-06, 07:45
  5. CL Variable an SQL übergeben
    By Jenne in forum NEWSboard Programmierung
    Antworten: 3
    Letzter Beitrag: 23-08-04, 10:45

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • You may not post attachments
  • You may not edit your posts
  •