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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by NasibKalsi

  1. NasibKalsi

    How To Replace Data To Another Table With Conditions

    try this select tblItems * ------------ set date ansi set century on copy to temp * If you want to view just 1 item then * copy to temp for item = "ballpen" t_date = set("DATE") use temp in 0 alias temp select temp index on ITEM + DTOC(date) + STATUS to temp total on ITEM+DTOC(DATE) + STATUS...
  2. NasibKalsi

    updating table with a .cdx

    This may be helpful set talk off set echo off clear close all delete file t-name.* create table t-name free (FIELD1 c(10), RESULT c(20)) insert into t-name (FIELD1) values ("1.2.3") insert into t-name (FIELD1) values ("1.1") insert into t-name (FIELD1) values ("1") insert into t-name...
  3. NasibKalsi

    updating table with a .cdx

    you can try index on str(len(alltrim(PARENTEELID))) + PARENTEELID tag HIERARCHY I tried to test your code and found that I can not call 'user defined functions' with Field Name(s) for creating indexes. This will not work: Hierarchy(PARENTEELID) or Hierarchy(FIELDNAME). There is an error...
  4. NasibKalsi

    Converting a string to a numeric value when exporting from a dbf to excel

    * Add 2 numeric fields to the TemapCursor i.e. NEWPRIX and NEWTOTP select 00000000.00 as NEWPRIX, 00000000.00 as NEWTOTP, ; line, order.itemno, percentage, invoice, cusno, table1.descrip as Description,; table1.sccal as Scientific_cal, str(int(Percentage/100*table1->pack),4) as pack...
  5. NasibKalsi

    simple loop ( my memory is not good)

    * Simplify the above same code so you may be able to see the syntax error lcCrlf = CHR(13) + CHR(10) lcLine = "" FOR lnI = 1 to 24 lcI = TRANSFORM(lnI) lcLine = "CENTRY" + lcI lcLine = EVAL(lcLine) lcLine = lcLine + " " lcLine = lcLine + lcCrLf STRTOFILE(lcLine, "garble.log",1)...
  6. NasibKalsi

    Fatal Error: C0000094 on Windows 10 PC

    Very basic info: May be stop outlook for few days for debugging purposes. 'End Task' for any outlook instance(s) I guess rest of the application works fine except this option.
  7. NasibKalsi

    vfp9 get data from google maps

    If !Empty(lcAddress1) Or !Empty(lcAddress2) * I think, you mean If !( Empty(lcAddress1) Or Empty(lcAddress2) )
  8. NasibKalsi

    Need help displaying data on a Visual fox pro report

    if you have not solved your issue yet, then 1. show sample data 2. show how you need to separate 3. how you index it i mean index expression
  9. NasibKalsi

    Index on date range help - thanks

    Mike -> "I disagree with Nasib. Using THISFORM in an index is not a good idea" But same is true for filter. In IkonTechDev' situation using 'index' or 'filter' will have the same scope limitations. There is extra cost on recreating his logic to accomodate the suggested changes. I guess...
  10. NasibKalsi

    Index on date range help - thanks

    This is simply to answer your question, such that you can do it. But follow what is said above. * Upper case is FIELDNAME * Limit dataset access based on DateRange index on trans(DATEFLD >= thisform.FromDate.value and DATEFLD <= thisform.ToDate.value) + alltrim(EMPID) tag MyOrder set key to...
  11. NasibKalsi

    RENAME changes upper to lower

    try command interpreter run rename lower.csv UPPER.CSV there is no 'to' reserve word in the command above.
  12. NasibKalsi

    how to hack details band's -&gt; &quot;start detail band on new page when less than&quot; at run tim

    If I understand correctly: You want to print multiple complete addresses on the same page if space available. That is if space available after printing x bands. Is the address band the last one on the report ? You could have a counter which will tell where you are on the report at any given...
  13. NasibKalsi

    how to hack details band's -&gt; &quot;start detail band on new page when less than&quot; at run tim

    Some more ideas: Assuming each line height is the same and you can print 50 lines per page. Add a field call it may be LINENO N 4 and another one call it may be NEWPAGE L Have the table ready to print with no active index. Update LINENO from 1 to 8, for each label, assuming you have maximum 8...
  14. NasibKalsi

    How to print Report

    Picking up ideas from above, You could try a label and duplicate your records to print 2 copies to a same page. Create a cursor with duplicate record such that duplicates appear together. Then create a Label report and feed the newly created cursor to it. If you have to print a separating...
  15. NasibKalsi

    Form and Class

    Thank you Vilhelm-Ion, Olaf and Mike for taking the time to reply. I was expecting in DE when Clicking on Form Form New Property && Exists New Method && Exists New Class && Does not Exist I was thinking there may be a way to have 'New Class' as well. I am a bit lazy and...

Part and Inventory Search

Back
Top