Español
C ++ Foro

Problema con Get() & Conjunto() Testcode

 

Michael
Dell
Hallole,

kann me no Reim en él hacer tambor Poste Yo simplemente el código & el Error- Meldung:
KompilierenMarcaSeparación
!
Def $SAGA_sgIt "AutoPaint,Decimals,ErrorLevel,Escape,FastMode,FileMode,MessageMode,NumWidth,PDC,RandSeed,StrWidth,TrueColor"

Proc SetAll

    Parameters SA_In$

    WhileLoop 1,12,1

        Set(SubStr$($SAGA_sgIt,&Loop,","),Val(SubStr$(SA_In$,&Loop,",")))

    EndWhile

EndProc

Proc GetAll

    Declare GA_Erg$

    WhileLoop 1,12,1

        Case    (&Loop = 1): GA_Erg$ = Str$(Get(SubStr$($SAGA_sgIt,&Loop,",")))
        CaseNot (&Loop = 1): GA_Erg$ = (GA_Erg$ + "," + Str$(Get(SubStr$($SAGA_sgIt,&Loop,","))))

    EndWhile

    Return GA_Erg$

EndProc

Cls
Print ("GetAll(): " + GetAll() + "   Normal")
SetAll("2,6,1,1,1,2,1,0,2,2,4,1")
Print
Print ("GetAll(): " + GetAll() + "   Neu")
WaitInput
End

3 kB
Kurzbeschreibung: _ Error- Meldung _
Hochgeladen:17.07.2006
Ladeanzahl70
Descargar
 
Salu Michael...

Hab zwar krumme Fieß awer dofir e' ecklich Gsicht! 
17.07.2006  
 




Michael
Wodrich
(Workaround) Versuche veces el Daten en Variables a conjunto y Conjunto sólo el Variables aufzurufen.

Lo sieht así de como si el Compiler una SET(str, str) vermutet.

Schöne Grüße
Michael Wodrich
 
Programmieren, das spannendste Detektivspiel der Welt.
17.07.2006  
 




Sebastian
König
¡Hola Michael,

sí, stimmt. El Ursache para todos es, dass Yo para el verschiedenen Conjunto()-Varianten en C++ überladene Características benutzt habe. Im Zusammenhang con @val() sieht el Compiler entonces desafortunadamente Mehrdeutigkeiten...

Ein Workaround es en el Tat el Umweg en Variables oder (algo kürzer) el Einschließen de @val() en una zusätzliches @int().

BTW: Mit el aktuellen Beta-Versión debería lo direkt trabajo, porque lo hay sólo ni Conjunto()-Variante son (el entonces una Variant-Datentyp benutzt).

MfG

Sebastian

P.S.: Leider scheint lo zusätzlich todavía una Problema beim Übersetzen de Get() a geben - Yo gucke veces, qué como schiefläuft...
 
Windows XP, XProfan/Profan² 4.5 bis 11
Profan2Cpp-Homepage:  [...] 
Alte Profan²-Seite:  [...] 
17.07.2006  
 



Respuesta


Título del Tema, max. 100 Signo.
 

Systemprofile:

Kein Systemprofil creado. [anlegen]

XProfan:

 Contribución  Font  Smilies  ▼ 

Bitte registro en una Contribución a verfassen.
 

Tema opciones

1.894 Views

Untitledvor 0 min.

Themeninformationen



Admins  |  AGB  |  Applications  |  Autores  |  Chat  |  Política de Privacidad  |  Descargar  |  Entrance  |  Ayuda  |  Merchantportal  |  Pie de imprenta  |  Mart  |  Interfaces  |  SDK  |  Services  |  Juegos  |  Búsqueda  |  Support

Ein Projekt aller XProfan, el lo son!


Mi XProfan
Privado Noticias
Eigenes Ablageforum
Temas-Merkliste
Eigene Beiträge
Eigene Temas
Zwischenablage
Cancelar
 Deutsch English Français Español Italia
Traducciones

Política de Privacidad


Wir uso Cookies sólo como Session-Cookies wegen el technischen Notwendigkeit y en uns hay no Cookies de Drittanbietern.

Wenn du hier en unsere Webseite klickst oder navigierst, stimmst du unserer Erfassung de Informationen en unseren Cookies en XProfan.Net a.

Weitere Informationen a unseren Cookies y dazu, como du el Kontrolle darüber behältst, findest du en unserer nachfolgenden Datenschutzerklärung.


einverstandenDatenschutzerklärung
Yo möchte no Cookie