English
Forum

Longs / Integer in structure or class Save

 
- Page 1 -



Jörg
Sellmeyer
How can I on the best a variable amount of Longs/Integers in a class/structure Save.
yet make I the over a list Create("List"), but then are the numbers always only as String stored and must over ands over again transformed go.
On a Memory-Variable becomes, loudly Help, too How on a String zugegriffen. an variable amount of variables can not define...
Arrays in classes are unfortunately you don't say so.
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
08/31/08  
 



 
- Page 1 -



Jörg
Sellmeyer
For this need I then but again The glpobale Variable C#. the You can then too plainer having. i want The Longs only inside the Class store, without additional variables. means about so, only not the detour over Strings. goes the at all?
CompileMarkSeparation
Class Test = Test@,Inhalt$(1000),Anzahl%,getInhalt@

Proc Test.Test

    WhileLoop %pcount

        .Inhalt$ = .Inhalt$ + Str$(&(&Loop)) + "|"
        .Anzahl% = &Loop

    Wend

    Return .Inhalt$

EndProc

Proc Test.getInhalt

    Parameters Index%
    Return SubStr$(.Inhalt$,Index%,"|")

EndProc

Var B# = New(Test,123,345,2434,823) ,...,...)
Print B#.getInhalt(3),B#.Anzahl%
WaitInput

[offtopic]Have The überflüssigen Posts removes[/offtopic]
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
08/31/08  
 




a variable amount


is Yes The question whether "variabel" here too "größenoffen" mean should.

If it simply his should, and a Maximalgröße no trouble is, then need one still only one Long Save which the lever one Speichers contain. (so, How I the in the principle in the ScrollControl-View source make.)
CompileMarkSeparation
long h=globalAlloc(gPtr,8)
...
long h&,0=typ
long h&,4=wnd
...
globalFree(h)
so can everything pub in the class Safe go.
 
08/31/08  
 




Jörg
Sellmeyer
OK - must I me time GlobalAlloc standing. Have I yet yet nothing with made. so a vaguely Maximalgröße have I already, therefore should the functions. thanks.
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
08/31/08  
 



The in the Grunde 3 different Lines sinds.
 
08/31/08  
 




Jörg
Sellmeyer
Klappt suuper!
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
08/31/08  
 




Frank
Abbing
any my Dlls works so, though Heaps Yes NEN Tacken faster his should. sure superstition.
GlobalAlloc is incidentally the same How LocalAlloc. before You yet thereafter ask...
 
08/31/08  
 




Jörg
Sellmeyer
there würd me sooner interested, what Heaps are...
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
08/31/08  
 



too only memory but dynamischer dank übergeordneter Zuordnung which but very therefore umständlicher is. you have in the Grunde a handle instead of of/ one address.
 
08/31/08  
 




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.393 Views

Untitledvor 0 min.
Walter01/13/23
Michael Borowiak01/12/13
Jörg Sellmeyer10/21/11

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