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 Mike Lewis 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: *

  1. alanmusician

    Enumerating custom paper sizes

    Oops. The issue was that a printer was not being selected when I first pulled the list, so my paper types didn't show up. Once I fixed that, I thought I was filtering for the "Custom Paper Size..." entry only, when I was filtering all custom sizes. Duh!
  2. alanmusician

    Enumerating custom paper sizes

    I am trying to get a list of custom paper sizes to populate a combobox. So far I have the list for the selected printer, but it doesn't include custom paper sizes. Instead, at the end of the list it has an item named "Custom..." with a RawKind of 256. List<PaperSize> paperSizes =...
  3. alanmusician

    DataTable columns visible at design time

    I have a data source which is declared like so: public class KPDataTable : IBindingList, ITypedList It is (sort of) shadowing a data table called floating table like so: public object this[int index] { get { if (index >=...
  4. alanmusician

    Combobox SelectedValue binding issue

    I'm having an issue with the combobox when binding to SelectedValue. ValueMember and DisplayMember are bound to a collection of custom objects as "Id" and "Species". SelectedValue is bound to another custom object as "SpeciesID". The collection is loaded from a database. This all works quite...
  5. alanmusician

    String members and TextBox

    I'm new to C# and OO in general, and have a newbie question. I have a class (ValidTextBox) inherited from TextBox that has various modifications to it, and one thing that I would like to do is make the Text control refer to a custom string class rather than string. How can this be accomplished...
  6. alanmusician

    Passing variables by URL and security

    Hello, all, I am trying to use a PHP script for documentation purposes in an old program written in Clarion. I want to be able to pass template and application ids to the PHP script, which then looks up the help topic associated with those IDs. I am able to do this by launching a URL (in IE)...
  7. alanmusician

    Duplicating rows with numbers

    I have a table with a text field containing a filename and a count of the number of images in the filename. I want there to be a numbered record for each image. For example: Imgfile | ImageNo 000020.tif | 3 Needs to be: Imgfile | ImageNo 000020.tif | 1 000020.tif | 2 000020.tif...
  8. alanmusician

    Functions - C and C++ compatibility

    They're all using LIBCMT. When I add my C++ module to the project I get these errors. All it #includes is windows.h and fstream.
  9. alanmusician

    Functions - C and C++ compatibility

    Okey, everything works peachy when I plug it into another test project I built that uses the /TC switch, but I get this error with the real project: LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library Any ideas?
  10. alanmusician

    Functions - C and C++ compatibility

    I have a function that I've written in C++ that I need to make available in a project that will only compile with the /TC option (crappy casting). What is the easiest way to solve this problem?
  11. alanmusician

    Single Byte Manipulation

    cpjust, your code works perfectly. Thanks for the solution!
  12. alanmusician

    Single Byte Manipulation

    I'm an old programmer but new to C++ and I'd like to ask a confused question. I have a chunk of data in a buffer in memory (type of LPVOID and virtually allocated with VirtualAlloc) that is read from an image file. This chunk of data is a tif file that has been encrypted by switching the two...
  13. alanmusician

    Switching a @ ... EDIT to NOMODIFY on the fly

    That's my current solution. I was hoping Foxpro might have something more elegant built into it. Thanks for the suggestions, though.
  14. alanmusician

    Switching a @ ... EDIT to NOMODIFY on the fly

    The WHEN clause skips it if .f. is returned. It is a field I need to behave like NOMODIFY rather than DISABLED. The difference is that the user cannot scroll through the information listed in the field. It needs to be selectable, but read-only.
  15. alanmusician

    Switching a @ ... EDIT to NOMODIFY on the fly

    Is there a way to switch a certain field to NOMODIFY on a screen during program execution? I need to have a certain field read-only under certain circumstances. I need something that would work like SHOW GET <field> DISABLED only with NOMODIFY. Any info?
  16. alanmusician

    Using SELECT to find a social security number in a string

    Fantastic. That's what I needed, thanks. :)
  17. alanmusician

    Using SELECT to find a social security number in a string

    I'm working with a database that has a character field for notes for the record, and I need to find a way to select all the records that have nine digits in a row inside the character field. select * from entry where desc like '%[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]%' doesn't work...

Part and Inventory Search

Back
Top