alix
Junior Member
Posts: 57
|
Post by alix on Jan 18, 2008 10:16:33 GMT -5
The code below does not work if the first line is commented out, i.e.
'global DefaultDir$ Am I doing something wrong ?
global DefaultDir$
filename$="\public\images\*.png"
result=DiplayJPG(filename$, 4)
wait
'*******************************************************
' functions
'*******************************************************
'
' DIPLAYJPG : get JPG files and display n at a time
'
function DiplayJPG(filename$, n)
files #g, DefaultDir$ + filename$
if #g HASANSWER() then
count = #g rowcount()
for i = 1 to count
if #g hasanswer() then
'retrieve info for next file
#g nextfile$()
img$=#g NAME$()
url$ = "http://localhost:8008/images/"
if count4 = 4 then
html "<br>"
count4=0
end if
count4=count4+1
html "<img src="""+url$+img$+""" img style='width: 200px; height: 150px;'>"
end if
next
end if
End Function
|
|
|
Post by carlgundel on Jan 18, 2008 10:28:36 GMT -5
Looks like a bug alright. I'll get this fixed for the v1.0.1 release. In the meantime just keep on using global.
-Carl
|
|
|
Post by carlgundel on Jan 24, 2008 22:26:52 GMT -5
Looks like a bug alright. I'll get this fixed for the v1.0.1 release. In the meantime just keep on using global. Fixed for v1.0.1. The Platform$ global was similarly broken, but it's fixed now too. -Carl and Scott
|
|
|
Post by StefanPendl on Mar 12, 2008 5:30:41 GMT -5
This is fixed for RBP 1.01 beta1
|
|