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 TealWren

  1. TealWren

    Execution Plan for Prepared Statement

    I have a fairly complex query with one integer type parameter. When I run it as a prepared statement, it takes ~50 seconds to run. When I run the same statement in query analyzer, it takes less than 1 second. My theory is that the execution plan is somehow different when it's running as a...
  2. TealWren

    Published fields or methods?

    Actually, you can have properties that are not published as well. It is properties that allow you to use get/set functions. As Stretchwickster mentioned, being in the published gives the property RTTI info which allows it to show up in the object inspector. It also allows you to query at...
  3. TealWren

    Add field at runtime w/o deleting orig. fields??

    I'm not sure the syntax for dbf files or if you can even do it, but for most databases you can use a TQuery and do something like this: Alter table yourtablename add YourField varchar(255) null and then to a query.ExecSQL to add a field to the table. Good luck! TealWren
  4. TealWren

    Draw an arrow on a form at design time

    You could use the form.Canvas property which allows you to set a pen color and style, and use MoveTo and LineTo to do basic drawing. Good luck! TealWren
  5. TealWren

    display text on the screen (no form)

    To change the font with the windows API you have to create the font that you want, select it and then print your text. You can change the font height by the first parameter and the font typeface by the last parameter. More details available in your API help. :) Afterward you should always set...
  6. TealWren

    display text on the screen (no form)

    Like, paint to the screen? Something like this might work: var d: hdc; begin d:=GetWindowDC(GetDesktopWindow); textout(d, 1,1, 'sometext', 8); ReleaseDC(GetDesktopWindow, d); end; TealWren
  7. TealWren

    invalid blob handle in record buffer error

    What Database back end are you using? Any text, varchar, etc. fields > 255 characters is considered a blob. Common fix for this issue is increasing the "BLOBS TO CACHE" option in the BDE. If you don't have any blobs or any fields > 255 characters this may not be the issues though...
  8. TealWren

    Iterate through controls on a Web form

    You are really looking for each con2 in the html controls collection, so it should be something more like: Dim Con as Control Dim html as HtmlForm For Each Con In Controls If Con.GetType Is GetType(HtmlForm) Then Dim Con2 as Control html = con as HtmlForm For Each Con2...
  9. TealWren

    Passing Arguments To Main()

    Mine's a little different than yours, but not in anything that should functionally change it I don't think. Take a look: using System; namespace ConsoleApplication1 { /// <summary> /// Summary description for Class1. /// </summary> class Class1 { /// <summary> /// The main...
  10. TealWren

    Passing Arguments To Main()

    Works fine for me... Are you using C# or C++? TealWren
  11. TealWren

    Configuration problem!

    Just an idea - did you install as administrator and then use a different login for developing? TealWren
  12. TealWren

    Call functions or subs from different files

    Are you talking about a script or a class method from another aspx.vb file? As far as class methods: All forms in VB.net are classes, and to call a method from another class you either need an instance of that class or the method needs to be &quot;shared&quot; which means it doesn't operate...
  13. TealWren

    frames and switching pages... a related query!

    Mark, We build the treeview dynamically, and in the NavigateURL put something like this: javascript:parent.frames[1].location.href=yourURL; Another option, as mentioned in the html source for a new frameset created with visual studio, would be 3. Add a BASE target=&quot;main&quot; element to...
  14. TealWren

    frames and switching pages

    You could call a javascript method that did something like this: function LoadInFrame(url) { parent.frames[2].location.href=url; } Then your link button could have an attribute like OnClick='javascript:LoadInFrame(url);' There are probably a million other ways :) Good luck...
  15. TealWren

    Programmatically click &lt;asp:hyperlink&gt; control

    Do you need to actually click the html url for some reason, or just redirect the current page to a new page? To redirect your page, you can use this.Context.Response.Redirect(newURL); in C#. I'm not sure of the syntax in vb.net but it's probably similar. Hope this helps! TealWren

Part and Inventory Search

Back
Top