Funciones Y Parámetros


Goto page Previous  1, 2, 3

Subject: Re: Funciones Y Parámetros
...continua...

Desde este mi mensaje podemos ver y comprender lo que hace efectivamente (o sea: lo que hace en la Estructura "CARRAY") el metodo .Clear de un Array:

Public Sub Main()

Dim lista As Short[] = [10, 20, 30, 40, 50]
Dim p, p2 As Pointer
Dim st As Stream
Dim j, b As Byte

p = Object.Address(lista)

st = Memory p For Read

For j = 0 To 39
Read #st, b
Print j;; Hex(b, 2)
Next
st.Close

Print
Print

p2 = Pointer@(p + 32)

st = Memory p2 For Read

For j = 0 To 9
Read #st, b
Print j;; b
Next
st.Close

Print "''''''''''''''''''''''''''''''''''''''''''''''''"
Print
Print " despues lista.Clear\n"

lista.Clear

p = Object.Address(lista)

st = Memory p For Read

For j = 0 To 39
Read #st, b
Print j;; Hex(b, 2)
Next
st.Close

Print
Print

p2 = Pointer@(p + 32)

st = Memory p2 For Read

For j = 0 To 9
Read #st, b
Print j;; b
Next
st.Close


End

Last edited by vuott on Friday, 25 September 2015, 11:35; edited 2 times in total
Profile PM  
Subject: Re: Funciones Y Parámetros
Vuott:

Cuando dices continua, ¿ en realidad es el mismo código que has ido ampliando o son códigos independientes ?.
(Es que ya no controlo cuando termino el trabajo...).

Subject: Re: Funciones Y Parámetros
Son codigos diferentes y problemas diferentes.

Profile PM  
Goto page Previous  1, 2, 3

Page 3 of 3


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Design by DiDiDaDo

Generation Time: 0.1337s (PHP: -30% SQL: 130%)
SQL queries: 24 - Debug Off - GZIP Enabled