Search:

Type: Posts; User: kriswork

Page 1 of 6 1 2 3 4

Search: Search took 0.05 seconds.

  1. Re: "checking a textbox is numerical before converting it" - How to do this succinctl

    I've got a change Event which works - Thanks very much
  2. Re: "checking a textbox is numerical before converting it" - How to do this succinctl

    I struggle with what category to put my current work into as it is definitely VBScript (No defined types - Variants Rule), but it is paired up with MS Forms v2 - All this is within the OPUS...
  3. "checking a textbox is numerical before converting it" - How to do this succinctly?

    Hi,

    My Environment is Windows 7, 3rd party VBScript Engine and MS Forms.

    I'm doing "isnumeric" checks on a load of values in textboxes and listviews before doing a "CInt" on each of them.
    ...
  4. Re: Passing an array from VBScript to COM enabled VB.NET Library...

    Finally worked out a way round not being able to use the object returned by VB.NET - As all arrays have to be passed "ByRef" I have passed in an extra array to the function to be used to output all...
  5. Re: Passing an array from VBScript to COM enabled VB.NET Library...

    Getting further - I can now get the array into VB.Net and access the elements. I can pass it back to VBScript without an error, but I don't know how to convert the object that is returned back to an...
  6. Re: Passing an array from VBScript to COM enabled VB.NET Library...

    I tried that and VS 2010 changes variant to object and I don't get an error, but how would I change an object back to an array - could I cast it?

    Thanks

    Kristian
  7. Passing an array from VBScript to COM enabled VB.NET Library...

    Hi,

    Getting this error below:

    Error:0 'Invalid procedure call or argument: 'objFit.Simple''

    VBScript Code:


    dim objFit , alInputTemperatures
  8. Re: [RESOLVED] VBScript & Microsoft Forms 2.0 & Opus

    I don't know how to move the thread to VBScript- there's no option under thread tools - If someone could me it for me that would be great.
    The vendor's support system were unable to provide any more...
  9. Re: [RESOLVED] VBScript & Microsoft Forms 2.0 & Opus

    So far I'm guessing that the form designer uses the frame control (It has a ShowGridDots property and loads more). I'm just now trying to get a handle for the parent of the form to see what I've got...
  10. Re: VBScript & Microsoft Forms 2.0 & Opus

    OMG - I got it to work (Having pasted your original code in again):

    138549

    Thanks so much for your help.
  11. Re: VBScript & Microsoft Forms 2.0 & Opus

    Trying to get it as simple as possible so used code below in VBA from Excel:


    Private Sub CommandButton1_Click()

    Dim ti As oleexp3.ITypeInfo
    Dim disp As oleexp3.IDispatch

    disp =...
  12. Re: VBScript & Microsoft Forms 2.0 & Opus

    I also tried defining 'ti' as just an object which allowed me to compile the dll, but get 'Object variable or With block variable not set' when trying to use the PrintTypeInfo sub in VBScript:

    ...
  13. Re: VBScript & Microsoft Forms 2.0 & Opus

    Got my VB6 IDE up and running, but getting same problem with a compile error: Method or data member not found
    it highlights 'ti'. The line if code is:


    ti = disp.GetTypeInfo(0, 0)

    I got a...
  14. Re: VBScript & Microsoft Forms 2.0 & Opus

    Hi Olaf,

    You can even go a step further and design the forms in something more modern (I'm using VS2010 and VB.NET) embedded in the COM visible dll, add a bit of code in the dll to show the form:...
  15. Re: VBScript & Microsoft Forms 2.0 & Opus

    Ah - I'll start up my old XP VM that has a really old install of Visual Studio - I'll try that tomorrow.
    Thanks
  16. Re: VBScript & Microsoft Forms 2.0 & Opus

    Trying to create the dll as a class project in VS2010:


    Option Explicit On

    Imports System.Runtime.InteropServices.ComTypes

    Public Class Class1
  17. Re: VBScript & Microsoft Forms 2.0 & Opus

    @DEXWERX - I'll try the code you posted - Thanks
    @DataMiser - We used to use OS/2 a lot where I used to work - main problem I remember was it could only address 16MB of RAM. With Opus you can...
  18. Re: VBScript & Microsoft Forms 2.0 & Opus

    Just tried oleview.exe (https://msdn.microsoft.com/en-us/library/d0kh9f4c(v=vs.71).aspx) and could see the name of my classes, but nothing more and any of the dlls supplied with Opus I get an error...
  19. Re: VBScript & Microsoft Forms 2.0 & Opus

    Opus allows you to write VBScript programs with a limited user interface, but most importantly at the same time allow you to control their Infrared scanning hardware and all the data analysis options...
  20. Re: VBScript & Microsoft Forms 2.0 & Opus

    Thanks for the speedy reply.

    I do have access to an old copy of Visual Studio so I may be able to use that to browse the object model.

    I do have all the Opus documentation (and I've checked...
  21. [RESOLVED] VBScript & Microsoft Forms 2.0 & Opus

    Hi,

    I'm currently working on a project to create a program that runs inside Opus (by Bruker).
    Opus has a basic form designer (circa VB6 era by the look of it) with any code you write done in VB6:...
  22. VS 2010 Re: Could not load file or assembly error but only with .Net 4.0 & no probing private

    Hi tg,

    The only error is the "Could not load file or assembly error":
    134579

    The library has worked quite happily for 2 years with v4.0 and even has "Net40" in its name. It's only when I...
  23. VS 2010 Could not load file or assembly error but only with .Net 4.0 & no probing privatepath

    Hi,

    Getting Could not load file or assembly 'Extreme.Numerics.Net40.......

    ...but only with v4.0 of the .NET framework and no probing privatepath specified in the app.config file.

    I'm trying...
  24. VS 2010 Re: How do you pass an object type as a parameter to a function?

    Yes it is an old COM library written in Fortran.

    Thanks for your help anyway.
  25. VS 2010 Re: How do you pass an object type as a parameter to a function?

    Thanks for the sample code, but VS is giving me an error on TryCreate:


    Error 38 Type argument 'cdsstrLib.cdsstr' must have a public parameterless instance constructor to satisfy the 'New'...
  26. VS 2010 [RESOLVED] How do you pass an object type as a parameter to a function?

    Hi,

    I need to register several dlls on the fly in my code. I've got this to work fine, but am trying to package a chunk of the code into a function.
    I've got some of it in a function, but can't...
  27. Re: Excel RGB colour numbers different between Excel 2007 and Excel 2010

    Hi,
    Thanks for the replies - I was hoping I was just doing it wrong. Interestingly, If I load an Excel 2010 spreadsheet which ended up with the wrong colours into Excel 2007 then the colours are...
  28. [RESOLVED] Excel RGB colour numbers different between Excel 2007 and Excel 2010

    Hi,

    Part of my VB.NET app reads the colour of a VB.Net chart and applies that same colour to a matching Excel chart:


    arrChart_Colour(byteChart_Number) = embchartHTCD.ChartAreas(0).BackColor...
  29. VS 2010 Re: How do you pass a "namespace.interface" as a parameter to a function?

    I think the libraries are either vb6 or Fortran and my code crashes if they are not registered (but as you said I noticed that some of the newer dlls don't need registering). Under references, they...
  30. VS 2010 How do you pass a "namespace.interface" as a parameter to a function?

    Hi,

    I'm trying to write a function to test if a dll I'm about to use is registered or not,. I've got lots of 3rd party dlls which I use which may not be registered, so I want to call a function,...
  31. VS 2010 Re: How can you add relative dll reference paths in VS 2010

    I've spent the best part of a week trying to get this sorted and still not much further on. What I have noted is the effect of what paths are listed in the "Reference Paths" dialog. When adding a new...
  32. VS 2010 Re: How can you add relative dll reference paths in VS 2010

    Thanks for the info - I'll have a read of the link. I don't have 600 references - only about a dozen, but some of those need other files which need to be in the right place. I did have a look at the...
  33. VS 2010 Re: How can you add relative dll reference paths in VS 2010

    I currently have 600 files and putting them all in 1 directory is a bit messy... but I may have to.
  34. VS 2010 How can you add relative dll reference paths in VS 2010

    Hi,

    I'm sure I can't be the first person to have this problem, but how can I add a reference to a library with a relative path?
    Currently in VS 2010 I've added several references to dlls that are...
  35. VS 2010 Re: Charts (Not Excel) and referencing the datasource when it's table is out of scope

    OMG - The chart does hold a copy of the table!!!

    Just commented out my function to load the table from my dataset and now directcast the table from the chart's datasource:


    ...
  36. VS 2010 Re: Is Visual Studio's bookmark functionality fixed in any version yet?

    I'm sure those 2 buttons were not there yesterday!

    Just found the task list with some tasks that I added possibly years ago!

    Normally I just leave a typo in the code to remind me where I left...
  37. VS 2010 Re: Is Visual Studio's bookmark functionality fixed in any version yet?

    Thanks - I really ought to spend some time and read the manual - I've been using VS2010 for a couple of years and only noticed the split windows draggy thing on the right a month or so ago!
    As...
  38. VS 2010 Is Visual Studio's bookmark functionality fixed in any version yet?

    I assume it's not just me where any bookmark will gradually move from where you set it.
    Is there any way to jump back to previous locations in your code, i.e. say the last 5 locations of code I was...
  39. VS 2010 Re: Charts (Not Excel) and referencing the datasource when it's table is out of scope

    The dataset solution is OK and means I don't need lots of publicly declared tables, it just means I need to be particularly careful naming my tables so I can then retrieve the right one later,...
  40. VS 2010 Re: Charts (Not Excel) and referencing the datasource when it's table is out of scope

    All my code above runs say when the form loads and you are correct that dtSelected_Data_File_and_PMT won't change, but initially I only want to display half the columns as data series. Possibly later...
Results 1 to 40 of 212
Page 1 of 6 1 2 3 4



Click Here to Expand Forum to Full Width