Questions tagged [user-defined]

253 questions
2
votes
0 answers

User defined global hotkeys

I am coding an application in WinForms (C#, .NET 4.0). I know how to use global hotkeys using Pinvoke. I am also able to define the set of hotkeys like CRLT+M etc etc. But, I want that at runtime, user can set it's own hotkeys as most of the…
Jim Carl
  • 41
  • 5
2
votes
2 answers

How to highlight a label

I have written my own User Defined Language in Notepad++ and all works fine but I would like to highlight all labels which are defined by all text ending with a colon, e.g. Label1: GetCardNumber: Is there any method of achieving this?
2
votes
1 answer

Make user defined language in Notepad++ work regardless of theme

I have imported a Less style that a developer had recommended on this website, but there is a slight problem - it is made for specific themes only. Without editing any XML files, is there any way to get this language file working regardless of…
Spedwards
  • 4,167
  • 16
  • 49
  • 106
2
votes
1 answer

Creating a user-defined function with SQL::Statement::Functions in Perl creates a syntax error

I am trying to work with UDFs, defined through SQL::Statement::Functions in Perl with a mySQL database in the backend. I am playing it by the book, as stated in http://metacpan.org/pod/SQL::Statement::Functions#User-Defined-Functions, however,…
yogibimbi
  • 588
  • 5
  • 17
2
votes
2 answers

C# - setting a user defined folder path as a string variable the first time a program is run

Thanks to you all for the help so far! I am extremely new to c# and code in general. I have a question that I cannot seem to find the answer to. I just wrote a simple program that moves files from one folder to a new folder named that day's date.…
user2258854
  • 61
  • 1
  • 1
  • 9
2
votes
2 answers

mysql using user-defined variable in where clause

sql query: select u.username, @total_subscribers:=( select count(s.id) from subscribers as s where s.suid = u.uid ) as total_subscribers from users as u where @total_subscribers > 0 if…
stergosz
  • 5,754
  • 13
  • 62
  • 133
1
vote
1 answer

table initialization list take to int, in user defined class

this is my short code class A { public: int x,y; A(int a=0, int b=0) { x=a;y=b; } }; int main() { A t[2] = {9,3}; cout << t[0].x << " " << t[0].y << endl; cout << t[1].x << " " << t[1].y << endl; } Output is: 9 0 3…
aragornsql
  • 121
  • 1
  • 6
1
vote
1 answer

Starting a user defined service in windows Xp

I am creating a user defined service on Windows Xp using sc.exe To create I started with sc.exe create "My Service" binPath= "D:\Service.bat" Got a message CreateService SUCCESS. Then I entered services.msc in the RUN and found the service which…
vels
  • 103
  • 1
  • 8
1
vote
1 answer

Use a recursive dop in APL

In the tryapl.org Primer when you select the Del glyph (∇) it shows an example of a Double-Del (∇∇) where a dop (as I understand it, a user defined operator) can reference itself in a recursive fashion: Double-Del Syntax: dop self-reference …
1
vote
2 answers

In XML is a Schema User Created?

if I make an XML Schema; I would physically define that schema correct? Or is there a program somewhere that would create a schema for my XML file automatically? Maybe I am confused on Schemas I'm not sure.
Howdy_McGee
  • 10,422
  • 29
  • 111
  • 186
1
vote
0 answers

How to create a user-defined exception that changes an already existing method inherited from a call?

I am trying to create an exception that changes a methods print message from "meow" to "Nope, scratch scratch"; but not sure where this is going wrong? def __init__(self, name): self.name = name def meow(self): …
JnooriRS
  • 103
  • 11
1
vote
1 answer

User-Defined Extended Enums in TypeScript

I am writing a TypeScript library that uses enums, like this: export enum Fruit { // enum values must be integers, // because the upstream library expects them that way. Apple = 0, Banana = 1, } /** A wrapper function for…
James
  • 1,394
  • 2
  • 21
  • 31
1
vote
4 answers

SQL User-Defined table Type in INTO statement

I want to Create a table @tablename with data from a User-Defined Table Type but I get the error Must declare the table variable "@tablename" ALTER PROCEDURE [dbo].[Prod_EntTable] @paramEntTable typeTableEnt readonly, @userid int AS BEGIN Declare…
1
vote
1 answer

AndroidManifest.xml user defined data - is it possible?

I'm thinking about possibility to put into AndroidManifest.xml some custom data. E.g. version of SQLite database for this particular release of app. For sure i can put those data as hardcoded in sources or somewhere in preferences, but still I'm…
Barmaley
  • 16,638
  • 18
  • 73
  • 146
1
vote
1 answer

What is SIGUSR2 used for in the TCL interpreter?

I'm getting a user defined signal 2 error from the tcl interpreter. What does the tcl interpreter use this particular signal for? In other words, what does it mean if the tcl interpreter send me a user defined signal 2? It is an elapsed timeout? Is…
Shawn
  • 10,931
  • 18
  • 81
  • 126