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 TouchToneTommy 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: RPrinceton
  • Content: Threads
  • Order by date
  1. RPrinceton

    Bolding lines not working properly

    Hello Everyone, I am using Word Object Library 9.0. This code is executed from within VB6. I have four lines of Word content. The following block of code is designed to "bold" the first line of the content while keeping the remaining three lines "non-bolded". The problem is this. The first...
  2. RPrinceton

    Subreport reports old data

    Hi All, At run time I am trying to change the file from which a subreport gets it data. I believe the code snippet below is correct, however at run time the subreport presents old data i.e., the data from the path I used at design time. I have ensured that the report does not save data both in...
  3. RPrinceton

    Setting the Datasource with a file path

    Hi All, I am using Crystal Reports 8.5 and VB6. I want to report on an ascii file that will located in several different locations on the hard drive. I am able to get the ODBC set up and the report defined. It appears that the SetDataSource property is where Crystal Reports will look for the...
  4. RPrinceton

    Year returned in strange format

    Hi Everyone, The code below yields a year of 106. I think the 1 is supposed to mean 20 (a Y2K thing). I can certainly test for the one, but is there another Javascript function to produce a 4 digit year? Please advise. Regards, RPrinceton Javascript: <!--BegHide hdg = "Excellence in...
  5. RPrinceton

    Submit function does ot submit

    Hi All, I am trying to use Javascript to submit a form as opposed to the button doing the submit. Below is the code used to do this. I have included notes as to what happens when the button is clicked. I hope it is clear. I am testing in both Internet Explorer and Firefox. I am not sure...
  6. RPrinceton

    When is a file considered to be accessed

    Hi Everyone, I am using the code snippet below to obtain the last access timestamp of a file. It returns the same timestamp even though I have opened and closed the file with another application. My question is this. What constitutes a "File Access" i.e., when does the file access attribute...
  7. RPrinceton

    Word and Excel constants

    Hi, I see constants like wdSaveChanges and xlMaximized all over the place. However what I don't see is one place that lists them all. Can anyone tell me where I can get the full list of both the Word and Excel constants? Please advise. Thx in advance. Regards, RPrinceton
  8. RPrinceton

    Strange typematch

    Hi Everyone, Please enlighten me. Environment: VB6 SP3 Windows 2000 Pro. I have a user defined Type named NFLIO.Week defined as String * 2. With field WkIdx defined as Integer I receive a type mismatch error in the following scenarios: WkIdx = CVar(NFLIO.Week) WkIdx = CInt(NFLIO.Week) WkIdx =...
  9. RPrinceton

    Multiple Reports in a Single Viewer

    Hi Everyone, I have several reports that I want to display in the Crystal Reports viewer. I want to view all the reports within a single instance of the viewer. It appears that the OpenPeport method only allows for one report. Is there a way to view more than one .rpt file at a time using a...
  10. RPrinceton

    Print spool

    Hi Everyone, I am printing a Word document thru a VB program. I am familiar with the BackgroundPrintingStatus property to determine when I can dismiss the Word application object. I need to know when the printer is free i.e., print spool is empty. It does not appear the the printer object...
  11. RPrinceton

    Apply Excel functions to specific cells

    Hi Everyone, I have an Excel spreadsheet. I want to conditionally use the 'PROPER' function against certain cells. The code snippet below results in an Excel error that indicates that there is circular reference. I do not know how this can be since I bump the value of r with each interation...
  12. RPrinceton

    Focus work in IE but not Firefox

    Hi Everyone, Below is a javascript code snippet I use to position the insertion pointer on a field upon detecting an entry error. It works in IE but not Firefox. What obvious thing am I missing? I have not tried it with Opera or Netscape. Please advise. Thx in advance. Regards, RPrinceton...
  13. RPrinceton

    Getting the sprinf not to round

    Hi Everyone, I am using the sprintf function to format a number. 1150.00/17.8 is 64.6067415730337 I want the number to be formatted as 64.60, no rounding. The code below rounds. How do I get the sprintf function not to round? I have toyed with the idea of letting the sprintf function round...
  14. RPrinceton

    ADO - Best method to check for duplicates

    Hi Everyone, I am trying to process an Access 2000 DB using VB6 via ADO. I like to keep my error handling "in-line" i.e., check for an error immediately after an instruction. In the code below I am checking for a duplicate key. Is this method suitable or is there a more preferred method...
  15. RPrinceton

    Binding a datagrid at design time

    Hi, In the earlier days of VB you could place a Datagrid control and a Data control on a form. Then with a few simple clicks you could find the path to an Access database and then bind it to the Data control, all at design time. Is there something analygous to this in VB .NET? Please advise...
  16. RPrinceton

    Populating a treeview recursively

    Hi Everyone, I want to populate a treeview with directories, subdirectories and files. Within each folder I want to have the directories come first followed by any subdirectories. Within each directory or subdirectories I want the files to be presented last as shown below (i.e., Explorer...
  17. RPrinceton

    Using the MIMI-Type to download multiple files

    Hi Everyone, The code snippet below works to download only ONE file. How can I modify the code to download multiple files? Repeating the code with another file name does not work. Please advise. Thx in advance. Regards, RPrinceton Code snippet that works to download one file...
  18. RPrinceton

    Cookie naming convention

    Hi Everyone, I am not sure this is the correct forum for this question but I need to start somewhere. I am creating a cookie from CGI, the content of which is irrelavent. On my home PC I can see three cookies named rcp6250@cgi-bin[1].txt, rcp6250@cgi-bin[2].txt and rcp6250@cgi-bin[3].txt...
  19. RPrinceton

    Best way to debug Javascript

    Hi Everyone, I am relatively new to this JavaScript stuff so please bear with me. What is the best way to debug JavaScript? In particular tracing logic flow, examining the contents of variables etc. I have been using "alerts" to accomplish this but I believe there is a better way. Please...
  20. RPrinceton

    Calling a function from within a function

    Hi Everyone, Is there any way to call a function from within a function? I have included the "psuedo" code below. function a() { function a statements here } function b() { need to call function a here more function b statements here } Thx in advance. Regards, R Princeton

Part and Inventory Search

Back
Top