English
Source / code snippets

up to 15 values a Proc give back: The Dummy-Proc ploy

 

p.specht

Getestet in XProfan11.2a: from of/ one Proc can itself usually with Return x only one einziger worth zurückliefern (it be because, one commit one aray - then becomes this aray worked)! Verzichtet one on a Proc-appeal with clinging, means NO "Funktion" (Parameter are naturally furthermore permitted), so can by Dummy-Proc appeal up to 15 different values into Hauptteil zurückliefern, without thereby later To disposende reaches or quite a own global Stack arrange To must. deference: Aufrufe from the Hauptteil with Parameters IN KLAMMER delete already VOR the return this internen Parameterstack!
cls
split "abcdefghijklmno",99
print "0:";@$(0),"1:";@$(1),"2:";@$(2),"3:";@$(3),"4:";@$(4),\
"5:";@$(5),"6:";@$(6),"7:";@$(7),"8:";@$(8),"9:";@$(9),"10:";@$(10),\
"11:";@$(11),"12:";@$(12),"13:";@$(13),"14:";@$(14),"15:";@$(15)
waitinput
end

proc split : parameters g$,f$

    declare a$[15] : a$[]=mid$(g$,&index+1,1)
    dummy a$[0],a$[1],a$[2],a$[3],a$[4],a$[5],a$[6],a$[7],\
    a$[8],a$[9],a$[10],a$[11],a$[12],a$[13],a$[14],a$[15]
    return f$

endproc

proc dummy

endproc

 
Computer: Gerät, daß es in Mikrosekunden erlaubt, 50.000 Fehler zu machen, zB 'daß' statt 'das'...
04/30/21  
 




Michael
W.

Please not...
 
Alle Sprachen
System: Windows 8/10, XProfan X4
Programmieren, das spannendste Detektivspiel der Welt.
05/02/21  
 




p.specht

must Yes none !
but How would You it because make, Michael?
 
XProfan 11
Computer: Gerät, daß es in Mikrosekunden erlaubt, 50.000 Fehler zu machen, zB 'daß' statt 'das'...
05/02/21  
 




Michael
W.
several values over a structure.
It's all right naturally too as Hash-aray, means The "Key" / "Value" Variante.
or if it none special selection want simply into aray.

The here angegebene Variante would I as "Dirty Trick" bezeichnen. and there's one never sure, whether the in future too yet so functions.

now white I but, Why this here with PType$() standing:

The investigation the Type must directly at the beginning the procedure to one etwaigen first Function- or Prozeduraufruf stand!
 
Alle Sprachen
System: Windows 8/10, XProfan X4
Programmieren, das spannendste Detektivspiel der Welt.
05/03/21  
 



Zum Quelltext


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

1.132 Views

Themeninformationen

this Topic has 2 subscriber:

Michael W. (2x)
p.specht (2x)


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