Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #9269 > unrolled thread
| Started by | thaychua00@gmail.com |
|---|---|
| First post | 2016-04-18 08:04 -0700 |
| Last post | 2016-04-21 15:30 -0700 |
| Articles | 6 — 3 participants |
Back to article view | Back to comp.lang.clipper.visual-objects
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: VO CGI Example for upload (SQL ) thaychua00@gmail.com - 2016-04-18 08:04 -0700
Re: VO CGI Example for upload (SQL ) Willie Moore <williem@wmconsulting.com> - 2016-04-18 12:58 -0500
Re: VO CGI Example for upload (SQL ) thaychua00@gmail.com - 2016-04-18 13:12 -0700
Re: VO CGI Example for upload (SQL ) Frans Wauters <info@wautersit.com> - 2016-04-18 11:01 -0700
Re: VO CGI Example for upload (SQL ) thaychua00@gmail.com - 2016-04-18 14:08 -0700
Re: VO CGI Example for upload (SQL ) thaychua00@gmail.com - 2016-04-21 15:30 -0700
| From | thaychua00@gmail.com |
|---|---|
| Date | 2016-04-18 08:04 -0700 |
| Subject | Re: VO CGI Example for upload (SQL ) |
| Message-ID | <1a06d635-d214-4684-b85a-9d2069a5a0a1@googlegroups.com> |
hi willie, knowvo.com is not available. do you have this sample saved some where? thanks
[toc] | [next] | [standalone]
| From | Willie Moore <williem@wmconsulting.com> |
|---|---|
| Date | 2016-04-18 12:58 -0500 |
| Message-ID | <733821113.482694990.173827.williem-wmconsulting.com@news.aioe.org> |
| In reply to | #9269 |
Hey, I don't think I have that sample. Regards, Willie Grafx Development Team
[toc] | [prev] | [next] | [standalone]
| From | thaychua00@gmail.com |
|---|---|
| Date | 2016-04-18 13:12 -0700 |
| Message-ID | <c2287d94-0a63-471f-bb03-318731251213@googlegroups.com> |
| In reply to | #9272 |
On Monday, April 18, 2016 at 9:58:23 AM UTC-8, Willie Moore wrote: > Hey, > > I don't think I have that sample. > > Regards, > Willie > Grafx Development Team thanks
[toc] | [prev] | [next] | [standalone]
| From | Frans Wauters <info@wautersit.com> |
|---|---|
| Date | 2016-04-18 11:01 -0700 |
| Message-ID | <90d6d0b3-e6da-4356-ab3c-e9fabc8a305c@googlegroups.com> |
| In reply to | #9269 |
Op maandag 18 april 2016 17:04:24 UTC+2 schreef thayc...@gmail.com: > hi willie, knowvo.com is not available. do you have this sample saved some where? thanks Hi, Maybe you can find it on my site: http://vo.wautersit.com/pubcavo ? Regards, Frans
[toc] | [prev] | [next] | [standalone]
| From | thaychua00@gmail.com |
|---|---|
| Date | 2016-04-18 14:08 -0700 |
| Message-ID | <26179693-75bf-41e3-a91e-ea348a55f945@googlegroups.com> |
| In reply to | #9273 |
got the file. many thanks
[toc] | [prev] | [next] | [standalone]
| From | thaychua00@gmail.com |
|---|---|
| Date | 2016-04-21 15:30 -0700 |
| Message-ID | <82aa4276-382f-41d8-8e5e-ded112390376@googlegroups.com> |
| In reply to | #9273 |
On Monday, April 18, 2016 at 10:01:42 AM UTC-8, Frans Wauters wrote: > Op maandag 18 april 2016 17:04:24 UTC+2 schreef thayc...@gmail.com: > > hi willie, knowvo.com is not available. do you have this sample saved some where? thanks > > > Hi, > > Maybe you can find it on my site: http://vo.wautersit.com/pubcavo ? > > Regards, > Frans Thanks Frans, I downloaded the cgiupload.zip .. and it seems to provide what I am looking for. I found a small BUG in the "FUNCTION upload( llog AS LOGIC ) AS VOID PASCAL" that makes the function stay in an endless do-while loop and never exit back to the Start() function to ultimately close down the program properly. e.g. when the upload() function finishes writing the destination file. it closes the handle the destination file but it never exit the loop. I add an exit statement after Fclose(hpost) and the program terminates properly. as blow: ====================================================================== FUNCTION upload( llog AS LOGIC ) AS VOID PASCAL LOCAL hpost AS PTR LOCAL htemp AS PTR LOCAL c1 AS STRING LOCAL c2 AS STRING LOCAL cinput := "" AS STRING LOCAL cBoundary AS STRING LOCAL cformtype AS STRING LOCAL celement AS STRING LOCAL cvalue AS STRING LOCAL nposfilenamestart AS DWORD LOCAL nposfilenameend AS DWORD LOCAL nstart AS DWORD LOCAL nend AS DWORD LOCAL i1 AS DWORD LOCAL i2 AS DWORD LOCAL i, dwSize AS DWORD LOCAL cfilename AS STRING LOCAL cfullname AS STRING LOCAL nwhere AS DWORD LOCAL hstdin AS PTR . . . . DO WHILE i1 > 0 .and. i2 > 0 .and. nend = 0 i2 := FRead3( hstdin, PTR( _CAST, c2 ), 1024*32 ) IF llog FWrite( htemp, ' i2: ' + NTrim( i2 ) + ' ' + NTrim( 8 ) + crlf ) ENDIF nend := At2( crlf + cBoundary, SubStr3( c1, 1, i1 ) + SubStr3( c2, 1, i2 )) IF nend = 0 FWrite3( hpost, PTR( _CAST, c1 ), i1 ) c1 := c2 i1 := i2 c2 := Buffer( 1024*32 ) ELSE EXIT ENDIF ENDDO IF nend > i1 nend := nend - i1 FWrite3( hpost, PTR( _CAST, c1 ), i1 ) FWrite3( hpost, PTR( _CAST, c2), nend ) i1 := i2 - nend - 1 c1 := SubStr2( c2, nend + 2 ) ELSE FWrite3( hpost, PTR( _CAST, c1 ), nend ) i1 := i1 - nend - 1 c1 := SubStr2( c1, nend + 2 ) ENDIF FClose( hpost ) exit // added by HOANG LUU. 2016.04.21 ENDIF . . . . RETURN
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.clipper.visual-objects
csiph-web