Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id A97529FBBE0 for ; Thu, 8 Mar 2007 13:20:17 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-new, port 10024) with ESMTP id 85566-01 for ; Thu, 8 Mar 2007 13:20:07 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from floppy.pyrenet.fr (news.pyrenet.fr [194.116.145.2]) by postgresql.org (Postfix) with ESMTP id BCD799FBCF7 for ; Thu, 8 Mar 2007 13:20:07 -0400 (AST) Received: by floppy.pyrenet.fr (Postfix, from userid 106) id B685730B2C; Thu, 8 Mar 2007 18:20:06 +0100 (MET) From: "Andrus" X-Newsgroups: pgsql.interfaces.odbc Subject: Re: examples VFP with Postgresql Date: Thu, 8 Mar 2007 19:19:53 +0200 Organization: Hub.Org Networking Services Lines: 171 Message-ID: References: <8398dc6d0703080426hc9907det376df423e8756a23@mail.gmail.com> X-Complaints-To: usenet@news.hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-RFC2646: Format=Flowed; Original To: pgsql-odbc@postgresql.org X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=BAYES_50 X-Spam-Level: X-Archive-Number: 200703/61 X-Sequence-Number: 8739 For backup, use LPARAMETERS cFn, cserver,cuser,nport,cdatabase * Using Ed Rauh class available from Universal thread downloads LOCAL orun as api_apprun OF api_apprun.vcx EXTERNAL CLASS api_apprun.vcx LOCAL cAppl cAppl= 'pg_dump.exe' LOCAL cmdline cmdline = '"'+m.cAppl + [" -ibv -Z3 -f "]+m.cFn+ ; [" -Fc -h ]+cserver+ ; [ -U ]+user+ ; [ -p ]+TRANSFORM(nPort)+ ; ' '+ cdatabase text to lcBatText textmerge noshow @echo off @set pgpassword=<> @echo <> >backuplog.txt @echo <<"Creating backup "+m.cFN>> @echo <<"Wait ">> <> 2>>backuplog.txt echo %errorlevel% >errorlevel.txt ENDTEXT lcHere=fullpath(set("directory")) lcBat=fullpath("tmp.bat") strtofile(lcBatText, lcBat) orun=Newobject('api_apprun','api_apprun.vcx', '', lcbat, lcHere) IF !orun.launchappandwait() messagebox( m.cAppl + ' ; ' + ; "Cannot run" ) DELETE FILE (lcbat) DELETE FILE backuplog.txt DELETE FILE errorlevel.txt RETURN .f. ENDIF IF orun.CheckProcessexitcode()#0 DELETE FILE (m.cFN) messagebox( +' Backup process error ; '+ ; TRANSFORM(orun.checkprocessexitcode(),'@0' ) ) MODIFY FILE backuplog.txt DELETE FILE backuplog.txt DELETE FILE errorlevel.txt DELETE FILE (lcbat) RETURN .f. ENDIF nErrorLevel=val(filetostr("errorlevel.txt")) IF nErrorLevel#0 DELETE FILE (m.cFN) okget( " pgdup error code " + ; filetostr("errorlevel.txt"), m.cFN, .t. ) MODIFY FILE backuplog.txt DELETE FILE backuplog.txt DELETE FILE errorlevel.txt DELETE FILE (lcbat) RETURN .f. ENDIF DELETE FILE (lcbat) IF !file(m.cFN) MODIFY FILE backuplog.txt DELETE FILE backuplog.txt DELETE FILE errorlevel.txt RETURN .f. ENDIF ""ionut ichim"" wrote in message news:BAY106-F28EC6A8A9B6424BA2CACA5C0790@phx.gbl... > Thanks for answer. > I'm interest how can i work with pg +VFP ... connections,sored > procedures,backup ,etc > Some links for simple examples, to test. > > > > > >>From: "Alejandro D. Burne" >>To: pgsql-odbc@postgresql.org >>Subject: Re: [ODBC] examples VFP with Postgresql >>Date: Thu, 8 Mar 2007 09:26:10 -0300 >> >>2007/3/7, ionut ichim : >>>I'm looking for some examples VFP with Postgresql ? >>>thanks. >> >>I'm using vfp with postgresql, what kind of examples? >> >>Alejandro >> >>---------------------------(end of broadcast)--------------------------- >>TIP 1: if posting/reading through Usenet, please send an appropriate >> subscribe-nomail command to majordomo@postgresql.org so that your >> message can get through to the mailing list cleanly > > _________________________________________________________________ > Express yourself instantly with MSN Messenger! Download today it's FREE! > http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ > > > ---------------------------(end of broadcast)--------------------------- > TIP 4: Have you searched our list archives? > > http://archives.postgresql.org >