Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: andreateh
  • Content: Threads
  • Order by date
  1. andreateh

    Question on movinge from VFP to MSSQL

    I', plan to move from the VFP database to MSSQL server. But i have few question before i move to MSSQL server. In VFP i used to write my single file maintainance program in a form with a pageframe with 2 pages. In page 1 contain a grid which is use to display the entire table's record. In here...
  2. andreateh

    Why should i use Try...Catch...Finally ?

    I still not every clear about Try..Catch..Finally Can i just put my error handling stuff in the object.error? Like example below : in oApp.error LPARAMETERS nError, cMethod, nLine DO CASE CASE nError = 1 &&In here i will try DO xxxxx &&to put all possible CASE nError =...
  3. andreateh

    Performance Tips Sharing..

    Hi everybody, here are some tips sharing. So lets try to post our most frequnce use tips here. I think this kinda tips is very useful for beginer like me: USE EVALUATE OR () instread of & (MACRO ASSIGN) CREATE CURSOR t (cText C(3),nNumeric N(4),cText2 C(3)) INSERT INTO T...
  4. andreateh

    VFP OLE DB Can't Rlock a record From VB

    My colleague is developing a VB program to work concurrent with my current VFP program. In my program i use to use rlock() to lock a record (reserve a record,sound stupid but is user request). Now my friend want to determine or lock a vfp table record from his VB program. So i suggest he use...
  5. andreateh

    VFP OLE DB Can't Rlock a record From VB

    My colleague is developing a VB program to work concurrent with my current VFP program. In my program i use to use rlock() to lock a record (reserve a record,sound stupid but is user request). Now my friend want to determine or lock a vfp table record from his VB program. So i suggest he use...
  6. andreateh

    Checnk locked VFP record Under VB

    Is it possible to find out a record is lock by rlock()in VFP From VB. My colleague is try to write an VB apllication to share table with my current VFP program. but he can't determine the record is it rlock by the vfp. Can some body give some comment ?
  7. andreateh

    SCATTER NAME.. What is the benefit ?

    When should i use SCATTER NAME ? and what is the benifit to scatter the record data to an object ? Because i still quite new to VFP, so please some body give me some advice. thanks
  8. andreateh

    SYS(602,0) or BITMAP OFF

    From VFP Document : SYS(602) - Bitmap Configuration However, off-screen bitmaps use a lot of memory, so you can improve performance on Terminal Server applications by turning these bitmaps off using SYS(602). SYS(602,1) &&(Default) Is this mean by default VFP application will take up lot...
  9. andreateh

    How to Full RushMore Optimize this SQL statement...

    tableA Index tagA : loc + row tableB Index tagB : ali + abu SELECT a.slipno,a.procod,a.lotnum,; RECNO() as rec_no,; a.curcod, b.abu FROM tableA a, tableB b; INTO CURSOR tmplot READWRITE; WHERE loc + row =; cLoc AND ali + abu =; c_sting with...
  10. andreateh

    How to know a table is empty ?

    How do i know that a table is empty ? "Empty" i mean here is no record in tha table or the table contain only deleted record. Does line below work ? nRecno = IIF(NOT EOF("table") OR; BOF("table"),RECNO("table"),.F.) IF TYPE("nRecNo")...
  11. andreateh

    Any comment on using & ?

    in A form i have 3 textbox, text1,text2,text3. And my code as below : for i =1 to 3 cObject = "text"+str(i,1) cMsg = "ERR_MSG"+STR(i,1)+"_LOC" With &cObject IF .value <= 0 MESSAGEBOX(&cMSG,0+48,ERR_TTL_LOC) .SetFocus()...
  12. andreateh

    Can't SET FILTER TO xx=thisform.xx

    I've create a form with 2 combo box.In this form i use only one table. And i set : combobox.rowsource = cAlias.FieldA combobox.rowsourceType = 6 in the combox1 valid method i write : SELE cAlias SET FILTER TO cAlias.Fielda = thisform.combo1.value The problem is when i click on the combo2...
  13. andreateh

    EMPTY CLASS

    Can anyone show me the some example on implementing EMPTY class ? Is it possible to add an "EMPTY CLASS" to a form and act as a public variable ?
  14. andreateh

    can't set Focus from a button's click even.

    I got i one entry from which is set to modeless. When user add record, another form which is set to modal is call by the modeless form from a textbox valid event. When i click the save button in the modal form. An erros message come out. cannot call set focus from within a...
  15. andreateh

    Do Form in Valid Event.

    In the Valid event of a textbox i put code below : IF EOF("t_ireqd") AND EMPTY(t_ireqd.procod) AND; LASTKEY() = 13 SELECT t_ireqd APPEND BLANK oapp.doform("bhpurinb",thisform.DataSessionId) ENDIF The LASTKEY() = 13 is try avoid the form popup if user is in the...
  16. andreateh

    Can i clear lastkey() ?

    WAIT WINDOW LASTKEY() WAIT WINDOW LASTKEY() TIMEOUT 2 CLEAR TYPEAHEAD WAIT WINDOW LASTKEY() during excuting line 1 i press enter, so in line 2 i'll see a "13". But on line 4 i still see "13". Is it possible to clear the value in lastkey() ?
  17. andreateh

    Please Explain line below for me ...

    I'm new to JavaScript. So can any one please explain line below for me? Thanks. var re = /^[a-zA-Z0-9]{1}[a-zA-Z0-9\-\._]+\@{1}[a-zA-Z0-9\-\._]+\.{1}[a-zA-Z0-9\-\._]+[a-zA-Z0-9]{1}$/ ^[a-zA-Z0-9]{1} Mean First character must be between "a-z" or "A-Z" or "0-9&quot...
  18. andreateh

    How to pass a variable from form to report ?

    Is it possible to pass a variable from a form to report ? I try declare a public variable. And then from the report access the variable. It work. But does it have other way ?
  19. andreateh

    "FOR EACH" Question..

    For example below ... Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2") colItems = objWMIService.ExecQuery("Select * from Win32_CommandLineAccess",,48) For Each objItem in colItems ?"Caption: " + objItem.Caption...
  20. andreateh

    SET FILTER TO vs SELECT (SQL)

    Some time we need to display set of query result in a grid. Usually we use : method A SELECT columns WHERE condition INTO CURSOR cursorname But i used to : method B USE tableA IN SELE(1) USE tableA AGAIN ALIAS resultset SET FILTER .F. ... ... &&Then user type the condition in the textbox...

Part and Inventory Search

Back
Top