English
Forum

Arrays a procedure give back

 

rafl
Hi,

that one Arrays as Parameter on a procedure transfer can, have I from the Helpfile entnommen. How can but one in the procedure new berechnetes aray on the aufrufende Program give back? it is supposed also somehow weg, I have but nothing found, How I the make must.

it deals itself with my data circa zweidimensionale Arrays with Floatwerten. The would like I do not gladly in a String umwanden and the hereafter in the Hauptprogramm again into 2D aray zurückwandeln.

naturally went it too over one globales aray. the would but too only a "Krücke".

can me there someone help?
 
01/11/21  
 




p.specht

(XProfan 11.2a) Arrays are really always global, and it must first quite nothing zurückgegeben go. The Proc operates really always the as Parameter-name übergebene aray.

from the X4-Help:

Return A&[]

an procedure can one aray give back. the Result must one aray equal Type allocated go. These Possibility counts for all Arraytypen with exception the Bereichs-, structure- or Objektarrays.
 
Computer: Gerät, daß es in Mikrosekunden erlaubt, 50.000 Fehler zu machen, zB 'daß' statt 'das'...
01/11/21  
 




p.specht

More than jest virtual - in the Interpreter went it Perhaps !
Proc GetType$

    return ptype$(1)

Endproc

Proc make2DArr

    parameters p&' 0 fetch Arraytyp, 1 überrägt aray
    Declare Arr![19,1]' 20x2-aray
    casenot p&:return gettype$(Arr![])
    Arr![]=&index*100' Eigentliche aray-edit
    Return Arr![]

ENDPROC

Main:
cls
execute "declare  a"+make2DArr(0)
a![]=make2DArr(1)
Print a![19,1]
WaitInput
end
 
Computer: Gerät, daß es in Mikrosekunden erlaubt, 50.000 Fehler zu machen, zB 'daß' statt 'das'...
01/12/21  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

2.162 Views

Untitledvor 0 min.
Sven Bader08/31/23
Thomas04/24/23
p.specht07/03/22
rafl06/21/22
More...

Themeninformationen

this Topic has 2 subscriber:

p.specht (2x)
rafl (1x)


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