CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets for: vlad tamas
.cItem = ALLTRIM(cItem)
 
IF !USED('rl')
   USE config!rl IN 0 ALIAS rl
ENDIF
SELECT rl
 
*---------------------------------------------------------------
*-- Copy rl structure to a temp cursor
*---------------------------------------------------------------
by vlad tamas   March 01, 2011 @ 2:33am
Tags:
120 Views
no comments
 
IF !USED('Exchange')
   USE iw_controls!Exchange IN 0 ALIAS Exchange
ENDIF
nSendUsing = Exchange.SendUsing
cServer = ALLTRIM(Exchange.Server)
USE IN SELECT('exchange')
 
SELECT csRFQ_B
GO TOP
by vlad tamas   December 10, 2010 @ 3:19am
Tags:
149 Views
no comments
 
IF !USED('Exchange')
   USE iw_controls!Exchange IN 0 ALIAS Exchange
ENDIF 
 
iMsg = CreateObject([CDO.Message])
iConf = CreateObject([CDO.Configuration])
Flds = iConf.Fields
 
Flds.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = Exchange.SendUsing
Flds.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = 'exchange' && ALLTRIM(Exchange.Server)
by vlad tamas   December 09, 2010 @ 8:44am
Tags:
139 Views
no comments
 
 
IF !USED('Exchange')
  USE iw_controls!Exchange IN 0 ALIAS Exchange
ENDIF 
nSendUsing = Exchange.SendUsing
cServer = ALLTRIM(Exchange.Server)
USE IN SELECT('exchange')
 
SELECT csRFQ_B
GO TOP
by vlad tamas   December 08, 2010 @ 8:32am
Tags:
135 Views
no comments
 
SELECT csRFQ_B
GO TOP
cdoSendUsingPort = 2
oMsg = CREATEOBJECT("CDO.Message")
oConf = CREATEOBJECT("CDO.Configuration")
Flds = oConf.FIELDS
 
Flds.ITEM("http://schemas.microsoft.com/cdo/configuration/sendusing") = cdoSendUsingPort
Flds.ITEM("http://schemas.microsoft.com/cdo/configuration/smtpserver") = cMailServer
Flds.ITEM("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = nsmtpconnectiontimeout
by vlad tamas   December 08, 2010 @ 7:14am
Tags:
124 Views
no comments
 
 SELECT * ;
    From config!part_li ;
    Where ALLTRIM(part_no) == ALLTRIM(NVL(cpart_no,'')) AND INLIST(ALLTRIM(type), &ctypes);
    Into Cursor (cResultCursor) ReadWrite
 
 nResult = _Tally
 
 IF nResult > 0
    lretval =.t.
 ELSE 
by vlad tamas   October 20, 2010 @ 1:10pm
Tags:
194 Views
no comments
 
LPARAMETERS cFile, oLog
 
LOCAL cSourceFile, cDestinationFile, cFileNameDbf, cFileNameXls, cFilePathDbf, cFullNameDbf, cFullNameXls, cOldDefault
LOCAL nImportedFields, nExpectedFields, cField, lFieldsOK, lDataOK, cItems, cParts, nItems, nParts, cImportItem 
LOCAL cDbfFieldName, cExpectedFieldName, cExpectedFieldType, nExpectedFieldSize, nExpectedFieldPrec, lImportTubingOK, lImportTTMLogOK
LOCAL ARRAY aExpectedFields[1], aImportedFields[1], aDbfFields[1], aNumericData[1]
 
cDestinationFile  = 'tubing.dbf'
cDestinationAlias = 'tubing'
by vlad tamas   October 20, 2010 @ 1:00pm
Tags:
165 Views
no comments
 
SQL
CREATE DATABASE dawnoises;
 
CREATE TABLE produse( 
    cod_produs number(10) not null primary key,
    cod_producator number(10) not null,
    denumire varchar(30),
    tip number(3) not null,
    cantitate number(8,2),
    um char(3),
    pret number(8,2)
by vlad tamas   June 01, 2010 @ 1:50am
195 Views
no comments
 
LPARAMETERS cfile, olog
 
LOCAL citems, cparts, citem, cpart, citemprev, calias, cfilen, cfilennew, nrec, nrecd, nafld, nprevsel, lcsubject, lcbody, lcbodyitems, lcbodyparts
 
ccr= CHR(13)+CHR(10)
 
nprevsel = SELECT()
cfile = LOWER(cfile)
 
sns = ALLTRIM(SYS(2))
by vlad tamas   May 25, 2010 @ 6:57am
196 Views
no comments
 
SELECT wire_inv
SEEK(cSpool_no)
 
IF !FOUND()
    RETURN .F.
ELSE
    qty_prior = Wire_Inv.Qty
ENDIF
 
IF USED("csEmpNoOut")
by vlad tamas   April 22, 2010 @ 9:47am
201 Views
no comments
 
** cmdSend.Click()
 
nPrevSel= SELECT()
thisform.mupdatesuppliers()
 
IF USED("csRFQSend")
   USE IN csRFQSend
ENDIF
 
SELECT * FROM csRFQList WHERE sel > 0 INTO CURSOR csRFQSend
by vlad tamas   April 15, 2010 @ 5:11am
Tags: RFQ
201 Views
no comments
 
...
 
      SELECT csRFQ_B
      SCAN
         Harness = ALLTRIM(csRfq_b.part_no)
         *pulls revision data from Intelex first AND fill IN any others from VFP Document Tables. (DES) 9/26/08
         DO Intelex_Multi_Rev WITH gcRevMemo, gcRevMemo5Col, gcRevMemo6Col, gcPlacardRevMemo
 
         IF USED("csPart_Li") Then
            SELECT csPart_li
by vlad tamas   April 12, 2010 @ 12:01pm
Tags: intelex
233 Views
no comments
 
* This program looks up all the Rev data from Document and populates a table called REV which is stored in SYS(2023)
* 
* It also populates the prior used Rev Var's in case a program requires them.
*
* Date: 5/28/2008 
* By: Doug Symes
*
LPARAMETERS lcRevMemo AS Character, lcRevMemo5Col AS Character, lcRevMemo6Col AS Character, lcPlacardRevMemo AS Character
 
PUBLIC cSeek, nCount, lIntelex, cSQL, nIntelexMultRevConn
by vlad tamas   April 12, 2010 @ 11:51am
Tags: intelex
191 Views
no comments
 
SET EXCLUSIVE OFF
 
crfqno = INPUTBOX("Enter RFQ number.", "cRFQno", "")
 
IF EMPTY(crfqno)
    RETURN
ENDIF  
 
IF USED('csSupplier')
   USE IN csSupplier
by vlad tamas   April 12, 2010 @ 7:52am
Tags: rfq
208 Views
no comments
 
 
WITH this
   DO CASE
      CASE .aitemlist[.ncurrentsearchtype,1]= 'Item'
         nResult = thisform.oBizObj.oRl.mGetRlByItem('csRoutingListI',this.txtSearch.VALUE)
         
         
******
******
TRY 
by vlad tamas   April 06, 2010 @ 7:14am
Tags:
214 Views
no comments
 
SET Exact ON
SET Exclusive OFF 
SET Multilocks OFF
SET Fixed OFF   
SET Deleted ON
SET Optimize ON
SET Unique OFF
SET Lock OFF
SET EngineBehavior 90 
 
by vlad tamas   April 06, 2010 @ 5:02am
Tags:
207 Views
no comments
 
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate