English
C ++ Forum

Completed: Get() & Set() Testcode

 

Michael
Dell
Hallole,

can me none rhyme on it make thatswhy Poste I simply whom code & The Error- Message:
CompileMarkSeparation
!
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- Message _
Hochgeladen:07/17/06
Downloadcounter71
Download
 
Salu Michael...

Hab zwar krumme Fieß awer dofir e' ecklich Gsicht! 
07/17/06  
 




Michael
Wodrich
(Workaround) try times the data in variables To settle and Set only with the variables aufzurufen.

it sees so from as though the Compiler one SET(st, st) vermutet.

Best wishes
Michael Wodrich
 
Programmieren, das spannendste Detektivspiel der Welt.
07/17/06  
 




Sebastian
König
Hello Michael,

Yes, is correct. The cause for the whole is, I for different Set()-mutants in C++ ornate functions using have. in the Context with @val() sees the Compiler then unfortunately Mehrdeutigkeiten...

One Workaround is in the doing the detour over The variables or (something kürzer) the Einschließen of @val() into zusätzliches @int().

BTW: with the actually Beta-Version should it directly functions, because it there only another Set()-Variante gives (The then a Variant-Datentyp using).

MfG

Sebastian

P.s.: unfortunately shining it additional another Problem Übersetzen of Get() To give - I gucke time, what there schiefläuft...
 
Windows XP, XProfan/Profan² 4.5 bis 11
Profan2Cpp-Homepage:  [...] 
Alte Profan²-Seite:  [...] 
07/17/06  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

1.956 Views

Untitledvor 0 min.

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie