PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → WB18 - SourceToPage Command ??
WB18 - SourceToPage Command ??
Iniciado por guest, 01,dic. 2014 17:13 - 2 respuestas
Publicado el 01,diciembre 2014 - 17:13
Can anyone see what I am doing wrong with SourcetoPage() ? I am getting an error

Dimension 1 of array contains 0 elements. Unable to access element
Here are 2 screen shots ...

Code : http://screencast.com/t/GZz82pjgwjsa

Error : <a class="ExternalLink" rel="nofollow" target="_blank" href="http://screencast.com/t/lsJJIXpAkAJw">http://screencast.com/t/lsJJIXpAkAJw</a>?

1. I load a table using the List class then when I select an item in the table
2. I get the record using the record class (which it gets)
3. I use the SourceToPage function and I get the error? Not much there so I m not sure what I am doing wrong?
Publicado el 01,diciembre 2014 - 17:37
Hi DanM,

There is an incorrect link in your source. A field is linked to an array of objects or something in the like that has no content and you try to display that content.

Make sure your linked fields (a table here?) are pointing to existing objects. The problem is somewhere there.

A general trick is to have at least one object in your faulty array that you know is just a dummy object to avoid crashed.

Hope this can help you.

Best regards,
Alexandre Leclerc
Publicado el 01,diciembre 2014 - 17:55
Thanks Alexandre ,,, I will take a look