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!

Search results for query: *

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

    Regular expression to match a single occurance of a ?

    I want to use a regular expression to confirm if a URL that includes query parameters only includes a single ?. So far, I have a pattern of "^http.*?\?[^\?]+", which sort of works, but fails to apply to the entire match string. For example, with "http://somedomain.com?a=aaaaaaa&b=bbbbbbbbb"...
  2. gacaccia

    how to increment a int column using UPDATE

    i have a sql server 2000 database with a table that includes an identity primary key field. it also includes an int field called "referenceCode" . the "referenceCode" value is set by the application that uses the database and is incremented for new records under certain conditions. due to a...
  3. gacaccia

    strange copy-item behavior

    i have an array of strings representing files to copy. each one needs to be copied to a central location. i have code like... foreach ($file in $files) { write-host "copying $file"; copy-item -path $file -destination $targetFolder } the content for $file might look like...
  4. gacaccia

    Regex and multiline replacement pattern, take 2

    so i've basically got a code file with comments where i want to remove the comments using a regular expression. the comments are identified with /* and */, which can span multiple lines. the final solution from a prior post was to use: [Regex]::Replace("/\*.*?\*/","") unfortunately, the...
  5. gacaccia

    regexp and multiline replace pattern

    is it possible to use a regular expression to remove all comments from a code file? for example, if i have a file with: here is some code /* here are some comments */ here is some code is there a way to specify a regexp pattern such that it will remove the comment. i wanted to do...
  6. gacaccia

    how to get powershell script to execute other scripts

    i have a powershell script that runs some installation tasks. it also reads a config file that can contain references to other executables, batch files or powershell scripts to run. basically, the intent is to allow individual users to add additional functionality to the primary script through...
  7. gacaccia

    how to specify output method for xmlwriter

    i have an program where i'm extracting xml from comments in a vbs file and then i need to output an html file using an xsl file for the transformation. to that end, i have code of... XslCompiledTransform transformer = new XslCompiledTransform(); transformer.Load(xslFile); string xmlContent =...
  8. gacaccia

    how to prevent <script></script> from collapsing to <script />

    i'm using an xslt file to output an html file from an xml file. the output html file needs to include a link to a javascript file. to that end, the xslt file includes... <xsl:output method="html" encoding="utf-16"/> <xsl:template match="/"> <html> <head> <script...
  9. gacaccia

    using XSLT to add modify code

    i want to create an html page by parsing a source xml file using xslt. the end product should include a javascript function that takes an element id as a parameter. the javascript function is called by the onclick method of certain <span> elements. for example... <span...
  10. gacaccia

    PSQL and -R (record separator)

    my understanding is that when outputting a select statment to file, the default record separator is a newline character (LF). i need to change this to CR/LF. i see documentation about the -R option when running a query from PSQL, but i can't find any documentation on what valid values are for...
  11. gacaccia

    defect in powershell w/ running script that references another script

    i have a powershell script that loads other powershell scripts. when i run this script in a powershell session, it runs fine. however, if i run it from a standard command window, any functions defined in the secondary powershell scripts are no longer recognized!? anyone familiar with this...
  12. gacaccia

    include file with relative path

    i want to build some libraries of routines to call from other powershell scripts. from what i've gathered, you can include something like... . c:\folder\script.ps1 at the start of a script to load the other script, making any functions in the file available to the currently running script...
  13. gacaccia

    query for single table with parent/child relations

    i have a single "tasks" table with a taskID primary key and a parentID field. the parentID field is an "informal" foreign key in that i've not establish a formal relation between the taskID field and the parentID field. tasks --------------- taskID parentID task ... i need a query that will...
  14. gacaccia

    datagridview with databound checkbox

    i've got a datagridview that includes a checkbox column. the datagridview is bound to a bindingsource. the underlying table includes a field named "active" of type "bit" (sql server) with a default value of 0 configured at the database level. the checkbox is bound to the "active" field. when...
  15. gacaccia

    output text based on regular expression

    does vbscript provide any tools for outputting text based on a regular expression? i basically want to use regular expressions as text generators. for example, if i have a regular expression that indicates a max length of 20 alpha characters, then it would output a random string of 0 to 20...
  16. gacaccia

    calling a derived class method from a base class instance

    i'm using an architecture called dOOdads. it provides a base "businessentity" class from which derived classes are created that map to each table/view in a database. for example, i have a database with a table called "generics" and another called "specifics". in my project, i have a class...
  17. gacaccia

    inheriting from a template class

    i'm using vs2005, working on a c++ application. i'm trying to create a base template class and inherit from that, but the project returns an error when it compiles. for example, the base class would look like... template <class T> class BaseTable { public: BaseTable(void)...
  18. gacaccia

    error when running trigger (TG_OP not recognized)

    hi all. i'm trying to write a generic trigger function that can be called by any trigger belonging to any table. here's what i've got... CREATE OR REPLACE FUNCTION process_table_activity_details() RETURNS "trigger" AS $BODY$ DECLARE table_ident varchar(100); strsql varchar(1000)...
  19. gacaccia

    function that creates triggers

    i want to create a function that will add a trigger to every user table in a database. i tried the following, but it gives me an error nearw keyword "trigger". is what i'm trying to do possible or is the "execute" statement not able to run "create" statements? CREATE OR REPLACE FUNCTION...
  20. gacaccia

    how to handle updates to records and server filters

    i have an access 2003 adp project with a sql server 2000 backend. i have a form that is opened with the standard docmd.openform and includes a filter for foreign key value, which sets the form's "serverfilter" property to something like "testPassExecutionID=65", for example. the form displays...

Part and Inventory Search

Back
Top