English
Bugs and vermeintliche

A second Return one Arrays

 

Paul
Glatz
Hello Roland,

this Code crashes under XProfan X2a ex, but with XProfan 11.2 not. Why????
Proc HDD

    Parameters hdd$
    declare hdd![2]
    hdd![0] = DiskFree(hdd$) /1024 /1024
    hdd![1]  = DiskSize(hdd$) /1024 /1024
    hdd![2] = hdd![1] - hdd![0]
    return hdd![]' aray zürückgeben

ENDPROC

cls' Window create
font 2
Set("Decimals",2)
Declare hddc![2]' aray create
hddc![] = HDD("C:")'Return of HDD in hddc! Save
Print st$(hddc![0])',"MB frei"
Print st$(hddc![1])',"MB gesammt"
Print st$(hddc![2])',"MB belegt"
waitend

Greeting
Paul

14 kB
Hochgeladen:06/17/11
Downloadcounter254
Download
 
06/17/11  
 




RGH
there shining objectively one bow cache To his. though only Interpreter. Compiled works it.

Greeting
Roland
 
Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4
06/18/11  
 




Dietmar
Horn
Hello Roland,

Paul what about me having this trouble on the Freitagnachmittag in unserem cabinet in Lauta both at develop of Demos for our XProfan-Textbook fixes, what about me knew unfortunately too no Solution for (except Perhaps the aray altogether To dispense).

Compiliert exit these Error Message ditto on - with Paul under windows 7 and by me To dwell under Windows XP Home. both use we always The latest Version XProfan X2a.

Greeting
Dietmar
 
Multimedia für Jugendliche und junge Erwachsene - MMJ Hoyerswerda e.V.  [...] 

Windows 95 bis Windows 7
Profan² 6.6 bis XProfan X2 mit XPSE

Das große XProfan-Lehrbuch:  [...] 
06/18/11  
 




RGH
Hi,

one Workaround would, the aray as Parameter To transfer and this then To fill.Arrays go Yes likewise How reaches as reference transfer:
Proc HDD

    Parameters hdd$, hdd![]
    hdd![0] = DiskFree(hdd$) /1024 /1024
    hdd![1]  = DiskSize(hdd$) /1024 /1024
    hdd![2] = hdd![1] - hdd![0]

ENDPROC

cls' Window create
font 2
Set("Decimals",2)
Declare hddc![2]' aray create
HDD("C:", hddc![])
Print st$(hddc![0])',"MB frei"
Print st$(hddc![1])',"MB gesammt"
Print st$(hddc![2])',"MB belegt"
waitend

Greeting
Roland

PS: self-evident becomes it a Bugfix give.
 
Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4
06/18/11  
 




RGH
alas Yes, a appendix yet:

my Variante with the Übergabe the Arrays as Parameter is too then vorzuziehen, if the bow with the Return one Arrays fixed is: she's faster, there the produce, copy and Delete one second Arrays in memory entfällt.

Greeting
Roland
 
Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4
06/19/11  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

8.296 Views

Untitledvor 0 min.
p.specht09/22/18
Michael W.03/26/16
RICOSCH01/17/16
Georg Teles05/14/14
More...

Themeninformationen

this Topic has 3 subscriber:

RGH (3x)
Dietmar Horn (1x)
Paul Glatz (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