English
Forum

Area array Dimensionierung Change

 
- Page 1 -



Hubert
Binnewies
Hello together..

I Have there a struktuiertes Area array as globales aray.
now be I but forced The Dimensionierung within one Proc Endprc To Change.
the thereby the Content lost goes is alike, but within one Proc Endproc remaining not global.
has a ne idea How I The Size Change can and the Area array nevertheless global remaining?

thanks Schonmal beforehand.

Hubert

P.s. think dran I have XProfan 9.1 not 10
 
WinXP Prof, XProfan 9.1 Newbie

Ein kluger Kopf sagte mal:
"Nach dem derzeitigen Stand der Technik ist es unmöglich Programme zu schreiben, die fehlerfrei laufen!"
10/23/06  
 



 
- Page 1 -


Hm I Have ne idea!

Deklariere still 2 Globale!

observe you always which Globale You lastly geDimt have, and nimm then The others.

helps the?
 
10/23/06  
 




Hubert
Binnewies
unfortunately No....

I have one Area array the on the Programmanfang with the Content of/ one File filled becomes.
The Number of Entries can itself but during the Programmablaufes Change, what about me read whom Content in a Procedure from...and if then the aray To small is have I verschissen To inne Steinzeit...

I must in the site his the Globale aray ( I need whom Content on many to put in the program ) within this Procedure To change, for may part can thereby too the Content lost weg I anyhow thereby whom Dateiinhalt new load...
and your idea to would the only once functions, but the can in a unidentified amount of Make occur.

has there not of/ one ne idea???

thanks Schonmal beforehand.

Hubert
 
WinXP Prof, XProfan 9.1 Newbie

Ein kluger Kopf sagte mal:
"Nach dem derzeitigen Stand der Technik ist es unmöglich Programme zu schreiben, die fehlerfrei laufen!"
10/23/06  
 



Hm naja then is the trouble but the aray ansich - because it in XProfan only static definierbar is.

try it still time with lists? I take for something like everything my Own Unit - thatswhy Have I tappt im dunkeln Yes written ^^

an such List is like a aray - only The Size can itself constantly change and isn't static.

Lists.Pcu [...] 

ought to The Unit with XProfan10 compiled his then can I tappt im dunkeln you - as they with you not functions - too gladly again with XProfan9 kompilieren.
 
10/23/06  
 




Hubert
Binnewies
this is ne damn good idea..... thanks....
I will tomorrow morning teste...

thanks

Hubert
 
WinXP Prof, XProfan 9.1 Newbie

Ein kluger Kopf sagte mal:
"Nach dem derzeitigen Stand der Technik ist es unmöglich Programme zu schreiben, die fehlerfrei laufen!"
10/23/06  
 




Hubert
Binnewies
Hello IF
I Have me with the PCU engage,
I must say : respect..
The is a quite mächtiges tool, ABER....

[quote:b65a49bb67=iF]
an such List is like a aray - only The Size can itself constantly change and isn't static.
[/quote:b65a49bb67]
the is correct already, but unfortunately only eindimensional.
in the momentum need I about 15 Dimensionen (Strukturiert).
clear, could I now The first list moreover use The Handels the others lists aufzunehmen (be I but constantly with the Wandeln of Ziffen to String and inverse engage), with which I one mehrdimensionales aray had, but then is it to that example with sort vinegar.
Should I then again everything self program.
would be still a good suggestion : list To link, with which one mehrdimensionale Arrays sustain, and if is a sortiert, go The others in the Order umgestellt as a The sortiert becomes.
an so on.
and it would beautiful if The lists not only Strings separate too Integer and Float take in could.

Hubert
 
WinXP Prof, XProfan 9.1 Newbie

Ein kluger Kopf sagte mal:
"Nach dem derzeitigen Stand der Technik ist es unmöglich Programme zu schreiben, die fehlerfrei laufen!"
10/24/06  
 




Uwe
''Pascal''
Niemeier
Hello Hubert!

BereichsArrays can right simply simulate:
CompileMarkSeparation
!
window 50,50-700,500
declare Data#
struct DATA=Wert&,Text$(19)
dim Data#,DATA
declare Size&
Size&=sizeof(Data#)
declare Mem#
dim Mem#,Size&*10
def DataSetzen(1) Mem#+Size&*%(1)

whileloop 0,9

    Data#=DataSetzen(&loop)
    Data#.Wert&=&loop
    Data#.Text$="Test"+str$(&loop)

endwhile

Data#=DataSetzen(5)
print Data#.Wert&
print Data#.Text$
print
Data#=DataSetzen(7)
print Data#.Wert&
print Data#.Text$
print
waitkey

to ReDimensionierung must You only Mem# Change. under XProfan 9 müsstest You moreover whom Content of Mem# in a additional area copy, Mem# by Dispose and Dim change and The data again write back. the ought to with @Char$( ) / Char or by API possible his.

BTW: with older Profan-versions (under 8 or so) fractures @Char$( ) the Reading data into String with achieve one NullBytes ex.

HTH
Pascal
 
10/24/06  
 




Hubert
Binnewies
[quote:79d768360d=Uwe Pascal Niemeier]
to ReDimensionierung must You only Mem# Change. under XProfan 9 müsstest You moreover whom Content of Mem# in a additional area copy, Mem# by Dispose and Dim change and The data again write back. the ought to with @Char$( ) / Char or by API possible his.
[/quote:79d768360d]
and very there lying my trouble....
very this is with my Proggi only within one Proc-Endproc possible.
only if I within this Procedur the aray Dispose , must I it too new Declarieren,Strukturieren and Dimensioniern......and....schwups is it one local and no globales aray More.
and How said, I need whom Content not To saving, I read whom eh always new one, isn't differently possible.
in the momentum be I attempts (its the gangbarste lane) To value wieviele Entries never come along can and the aray at the beginning so To Dimensionieren.
sound of course stupid, but from the present engineering auszugehen ought to enough Hauptspeicher present his for a 18 Dimensionales aray#[1000] with 11 Strings a´50 characters, of/ one with 2000 characters and 6 Integers and the whole 2 time aufzunehmen.

Hubert
 
WinXP Prof, XProfan 9.1 Newbie

Ein kluger Kopf sagte mal:
"Nach dem derzeitigen Stand der Technik ist es unmöglich Programme zu schreiben, die fehlerfrei laufen!"
10/24/06  
 




Uwe
''Pascal''
Niemeier
Hello Hubert!

Why must You The Memory-Variable new declarieren??
After DISPOSE should You tappt im dunkeln directly with DIM again dimensionieren can, and if The Variable global declared watts, game it no role, whether the in a Proc happens.

HTH
Pascal
 
10/24/06  
 



<offtopic>Uwes Avatar is Real heavy... </offtopic>
 
10/24/06  
 



 
- Page 2 -



Hubert
Binnewies
@Uwe
I versuchs time....

can what last To I one Ergebniss have.
If Klappt, HERZLICHEN DANK!!!

@IF
I agree you right....Real heavy...

@Uwe
self painted??
 
WinXP Prof, XProfan 9.1 Newbie

Ein kluger Kopf sagte mal:
"Nach dem derzeitigen Stand der Technik ist es unmöglich Programme zu schreiben, die fehlerfrei laufen!"
10/24/06  
 




Uwe
''Pascal''
Niemeier
Hello people!

To my new Avatar:
whom Have I with PovRay (scriptgesteuerter Freeware-Raytracer) prepares:
[...] 

here the View source:
CompileMarkSeparation
!
#include "textures.inc"
#include "colors.inc"
#include "glass.inc"
#include "metals.inc"
global_settings{assumed_gamma 1.3}
light_source{<0,100,-100> color White}
camera{location<10,13,-10> look_at<0,0,0> angle 40}

sky_sphere{

    pigment{

        marble
        turbulence 1

        color_map{

            [0.000 color <1.0,0.7,0.7>]
            [0.001 color <0.7,1.0,0.7>]
            [0.002 color <0.7,0.7,1.0>]
            [0.003 color <1.0,1.0,1.0>]
            [0.004 color <0.0,0.0,0.03>]

        }

        scale 0.1

    }

}

#declare Fraktal=

julia_fractal{

    <0.5,1,-0.5,0.5>
    quaternion
    max_iteration 6
    precision 600
    texture{T_Chrome_5E}
    scale <3,3,3>

}

object{Fraktal}
object{Fraktal rotate <0,90,0>}
object{Fraktal rotate <0,0,90>}

sphere{<0,0,0> 1

    pigment{rgbt<1,1,1,1>}

    interior{

        media{

            emission 0.5

            density{

                spherical

                color_map{

                    [0.0 color rgb<0,0,0>]
                    [0.3 color rgb<1,0,0>]
                    [1.0 color rgb<1,1,0>]

                }

            }

        }

    }

    hollow

}


BTW: PovRay can also from external Files reading (z.B. Coordinates etc.)
One good area of application for profane Additional tools

SeeYou
Pascal
 
10/25/06  
 




Hubert
Binnewies
Hello Uwe...

I bedanke me in allerschärfster shape....
it functions correct...
Perhaps ought to one from it ne Proc fürn pff building...

Hubert
 
WinXP Prof, XProfan 9.1 Newbie

Ein kluger Kopf sagte mal:
"Nach dem derzeitigen Stand der Technik ist es unmöglich Programme zu schreiben, die fehlerfrei laufen!"
10/27/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.092 Views

Untitledvor 0 min.
H.Brill09/24/22
Michael W.03/26/16
Werner Schumann09/14/13
Julian Schmidt06/13/13
More...

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