Search found 14 matches

by Jamball77
Mon Feb 06, 2017 3:47 pm
Forum: Technical / Scripting
Topic: DBExec - Missing parameters in function call -min. 3 expecte
Replies: 3
Views: 4706

Re: DBExec - Missing parameters in function call -min. 3 exp

It's common practice in stored procedures to suppress the row count returned by updating your stored procedure by using "SET NOCOUNT ON" EXAMPLE: [snippet=]ALTER PROCEDURE [dbo].[storedprocedure_name] @YR_CDE [char] (4) ,@TRM_CDE [char] (2) ,@Begin_DTE [datetime] ,@End_DTE [datetime] AS SET NOCOUNT ...
by Jamball77
Thu Jun 30, 2016 1:15 pm
Forum: The Water Cooler
Topic: Running Scheduler on a VM
Replies: 4
Views: 9908

Re: Running Scheduler on a VM

I use RDP to access virtual servers. Just X out of RDS it'll warn you saying your session window will close but any open programs will continue to run. Consider other administrators. Generally, you'll only have 2 licenses to remote into a server unless you buy additional LICs. If you only have two l...
by Jamball77
Thu Sep 24, 2015 2:22 pm
Forum: Technical / Scripting
Topic: Highlight Value in ListBox based on variable value
Replies: 3
Views: 3683

Re: Highlight Value in ListBox based on variable value

Followup:

A less elegant but easy fix is to put in a second "Current Values" text box to receive the array variables.

That gives me a field for current values and a second field (listbox) to push values into the database.
by Jamball77
Thu Sep 24, 2015 2:09 pm
Forum: Technical / Scripting
Topic: Dealing with the 'x' in a Dialog Box
Replies: 9
Views: 9723

Re: Dealing with the 'x' in a Dialog Box

I like Phil Pendlebury post idea of removing the X in the title bar. I'm using MS 14 * Go to the dialog editor * Click the background or title bar to give the whole form focus * Look at the properties window should say something like "Properties for: dialog" * scroll down in properties to BORDER ICO...
by Jamball77
Wed Sep 23, 2015 12:43 pm
Forum: Technical / Scripting
Topic: Highlight Value in ListBox based on variable value
Replies: 3
Views: 3683

Re: SetDialogProperty from array via DBQuery

Thank you Hagchr! That really helps and does exactly what I need, to highlight a value in listbox based on a variable. :D As you pointed out it does seem to be an issue with SelectedItems since TEXT works just fine. Such a pity, but makes sense that reading/writing a value is different from changing...
by Jamball77
Wed Sep 23, 2015 5:42 am
Forum: Technical / Scripting
Topic: Highlight Value in ListBox based on variable value
Replies: 3
Views: 3683

Highlight Value in ListBox based on variable value

Hi, I'm trying to highlight values in a listbox based on values i read in from a table using DBQuery. array_Vars.jpg The values are correct compared with the db table. I then use SetDialogProperty to update the dialog with the variable values. PROBLEM: only the Text boxes update. ListBoxes do not up...
by Jamball77
Thu Sep 10, 2015 2:02 pm
Forum: Technical / Scripting
Topic: GetDialogProperty from ListBox or ComboBox
Replies: 3
Views: 3634

Re: GetDialogProperty from ListBox or ComboBox

I love it when it works :D

So big picture is that you just have to find the right Property you want returned.

Edit Box: Text
ListBox: SelectedItems
Check Box: State
ComboBox: :?:
by Jamball77
Wed Sep 09, 2015 9:58 pm
Forum: Technical / Scripting
Topic: GetDialogProperty from ListBox or ComboBox
Replies: 3
Views: 3634

GetDialogProperty from ListBox or ComboBox

I have a form with both "Edit" and "ListBoxes" I can see the values for each type update in the watchlist as I step through my code. Problem Values from Edit Text properties are fetched properly using GetDialogProperty but values from ListBoxe Text properties fetch the entire list of entries in the ...
by Jamball77
Wed Sep 09, 2015 9:32 pm
Forum: Beginners
Topic: Where is File Open in main menu
Replies: 1
Views: 2817

Where is File Open in main menu

nofileinmenu.jpg
Hi there is no File Open in my main menu. I see it documented, I'm in Ver 14

Is there a shortcut, or other way to get to it?
by Jamball77
Wed Aug 12, 2015 6:24 pm
Forum: Beginners
Topic: Running an SQL Script
Replies: 4
Views: 4582

Re: Running an SQL Script

//FYI the Database Reference is here:

https://www.mjtnet.com/blog/2008/04/15/ ... functions/
by Jamball77
Wed Aug 12, 2015 12:20 pm
Forum: Technical / Scripting
Topic: String Operators - Concatenation
Replies: 2
Views: 3549

Re: String Operators - Concatenation

Thanks, my issue was with the spacing.

I had used the %s to stitch things together as per posting:
http://mjtnet.co.uk/forum/viewtopic.php?f=2&t=6457



Related links:
viewtopic.php?t=6856
viewtopic.php?t=1653
by Jamball77
Tue Aug 11, 2015 11:02 pm
Forum: Technical / Scripting
Topic: String Operators - Concatenation
Replies: 2
Views: 3549

String Operators - Concatenation

I want to concatenate String Part1 + CO_ID_string (from a user input window) + String Part2. How do I do this? Not yet in the online MacroScheduler docs. Those have really helped . let>string_part1 = DECLARE @RC int DECLARE @CO_NUMB varchar (15) SET @CO_NUMB = ' Input>CO_ID_string,Enter the CO_ID, l...
by Jamball77
Tue Aug 11, 2015 7:12 pm
Forum: Technical / Scripting
Topic: DBExec - Missing parameters in function call -min. 3 expecte
Replies: 3
Views: 4706

Re: DBExec - Missing parameters in function call -min. 3 exp

Ah, I see now. It's returning the number of rows affected. Works. Many thanks. quoting from: https://www.mjtnet.com/blog/2008/04/15/using-macro-schedulers-database-functions/ Modifying Data To perform any SQL statement that does not return data use the DBExec command. E.g. DBExec can be used for a D...
by Jamball77
Tue Aug 11, 2015 4:03 pm
Forum: Technical / Scripting
Topic: DBExec - Missing parameters in function call -min. 3 expecte
Replies: 3
Views: 4706

DBExec - Missing parameters in function call -min. 3 expecte

I have a simple script that calls a SQL stored procedure using DBExec since my stored procedure returns nothing. When I run/debug and hit the DBExec line I get the error: Missing parameters in function call (minimum of 3 expected) How do I interpret this error/fix my problem? I thought that DBExec i...
Sign up to our newsletter for free automation tips, tricks & discounts