I wish to search a memo field which could contain one of the following:
Sample 1:
<iframe title="YouTube video player" width="480" height="390" src="http://www.youtube.com/embed/C_sfymiB-T4?rel=0" frameborder="0" allowfullscreen></iframe>
Sample 2:
<object width="500" height="405"><param name="movie" value="http://www.youtube-nocookie.com/v/KBSOeUCzefQ&hl=en_US&fs=1&rel=0&color1=0x006699&color2=0x54abd6&border=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube-nocookie.com/v/KBSOeUCzefQ&hl=en_US&fs=1&rel=0&color1=0x006699&color2=0x54abd6&border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="500" height="405"></embed></object>
Sample 3:
<object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/qqEntcy-FMQ?fs=1&hl=en_US&rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/qqEntcy-FMQ?fs=1&hl=en_US&rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object>
Within this field, I wish to locate the width and height and replace with width="560" height="349"
A part of my script:
dim tbl as P
tbl = table.open("[pathalias.adb_dbf]\videos")
query.filter = "random_records(1, \"recommend='Yes'.and.Pass='Yes'.and.source='YouTube'.and.cruel<>'Yes'\")"
query.order = ""
query.options = ""
qry = tbl.query_create()
gcount = qry.records_get()
tbl.fetch_first()
while .not. tbl.fetch_eof()
I’ve tried several variations of the following but can’t seem to get it right.
vaa = STRITRAN_SPECIAL(tbl.Link, quote(" width="), quote(" scr="), "width="+quote("560") +" height="+quote("349"))
? "<center>"+vaa+"</center>"
Suggestions welcome!
Sample 1:
<iframe title="YouTube video player" width="480" height="390" src="http://www.youtube.com/embed/C_sfymiB-T4?rel=0" frameborder="0" allowfullscreen></iframe>
Sample 2:
<object width="500" height="405"><param name="movie" value="http://www.youtube-nocookie.com/v/KBSOeUCzefQ&hl=en_US&fs=1&rel=0&color1=0x006699&color2=0x54abd6&border=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube-nocookie.com/v/KBSOeUCzefQ&hl=en_US&fs=1&rel=0&color1=0x006699&color2=0x54abd6&border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="500" height="405"></embed></object>
Sample 3:
<object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/qqEntcy-FMQ?fs=1&hl=en_US&rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/qqEntcy-FMQ?fs=1&hl=en_US&rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object>
Within this field, I wish to locate the width and height and replace with width="560" height="349"
A part of my script:
dim tbl as P
tbl = table.open("[pathalias.adb_dbf]\videos")
query.filter = "random_records(1, \"recommend='Yes'.and.Pass='Yes'.and.source='YouTube'.and.cruel<>'Yes'\")"
query.order = ""
query.options = ""
qry = tbl.query_create()
gcount = qry.records_get()
tbl.fetch_first()
while .not. tbl.fetch_eof()
I’ve tried several variations of the following but can’t seem to get it right.
vaa = STRITRAN_SPECIAL(tbl.Link, quote(" width="), quote(" scr="), "width="+quote("560") +" height="+quote("349"))
? "<center>"+vaa+"</center>"
Suggestions welcome!
Comment