| |
|
|
- Página 1 - |
|
 Jörg Sellmeyer | ¿Cómo se puede Yo al Besten una variable Anzahl de Longs/Integers en uno Klasse/Struktur speichern. Bisher mache Yo el una Liste Crear("List"), aber entonces son los números siempre sólo como String gespeichert y necesario siempre otra vez umgewandelt voluntad. Auf una Bereichsvariable se, laut Ayuda, auch como en una String zugegriffen. Un variable Anzahl de Variables puede ser no definieren... Arrays en Klassen son por desgracia, no posible. |
|
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ...  | 31.08.2008 ▲ |
|
|
|
|
| |
|
- Página 1 - |
|
 Jörg Sellmeyer | Dafür necesidad Yo entonces aber otra vez el glpobale Variable C#. Das puede ser entonces auch einfacher haben. Yo möchte el Longs sólo innerhalb el Klasse speichern, sin zusätzliche Variables. Also etwa así, sólo no con el Umweg encima Cuerdas. Geht el überhaupt? KompilierenMarcaSeparaciónClass 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]Hab el überflüssigen Beiträge lejos[/offtopic] |
|
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ...  | 31.08.2008 ▲ |
|
|
|
|
 |
una variable Anzahl
Ist sí el Cuestión si "variabel" hier auch "größenoffen" bedeuten se.
Wenn lo simplemente ser se, y una Maximalgröße kein Problema es, entonces braucht uno doch sólo una Largo speichern welches el Handle uno Speichers beinhaltet. (So, como yo en el Principio en el ScrollControl-Ver código fuente mache.) KompilierenMarcaSeparaciónSo kann alles lokal en el Klasse abgesichert voluntad. |
|
|
| |
|
|
|
 Jörg Sellmeyer | Ok - muß Yo veces GlobalAlloc ansehen. Hab Yo bisher todavía nix con gemacht. So una ungefähre Maximalgröße Yo ya, por lo tanto müßte el trabajo. Gracias. |
|
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ...  | 31.08.2008 ▲ |
|
|
|
|
 | El en el Grunde 3 verschiedenen Zeilen sinds.  |
|
|
| |
|
|
|
 Jörg Sellmeyer | |
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ...  | 31.08.2008 ▲ |
|
|
|
|
 Frank Abbing | Alle mi Dlls trabajo así, obwohl Heaps sí nen Tacken más rápido ser debería. Seguro Aberglaube. GlobalAlloc es de paso el gleiche como LocalAlloc. Antes du todavía danach fragst...  |
|
|
| |
|
|
|
 Jörg Sellmeyer | Como würd mich más interés, qué Heaps son...  |
|
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ...  | 31.08.2008 ▲ |
|
|
|
|
 | Auch sólo Speicher aber dynamischer dank übergeordneter Zuordnung welche aber genau por lo tanto umständlicher es. Usted hast en el Grunde una Handle en lugar de uno Adresse. |
|
|
| |
|
|