Questions tagged [user-defined]

253 questions
0
votes
0 answers

MySQL SELECT user-defined var AS alias WHERE user-defined var is equal to?

I use a user-defined variable in MySQL to group zip codes. Now I only want to select results with column rownum equal to 1. How to select by rownum in WHERE clause by alias rownum? Following query gives me the desired results .. SET @row :=…
Aldee
  • 61
  • 9
0
votes
1 answer

vba GetCursorPos User-defined type not defined error

I'm making label1 move with the mouse in powerpoint. But I get User-defined type not defined error. code: Declare Function GetCursorPos Lib "user32" (lpPoint As POINTAPI) As Long Type POINTAPI left As Long top As Long End Type Dim Xoff, Yoff As…
PaperSoft
  • 1
  • 2
0
votes
0 answers

Userform - VBA code compile error: User-defined type not defined

I managed to form a VBA code which can auto import exchange rate data from website as below. It works perfectly week in the individual worksheet. But I am facing a challenge how to add this code into my main development userform. My idea is to add…
Raysiu
  • 19
  • 4
0
votes
2 answers

How to apply user defined try catch block in java

I am a beginner and I've finished the basic Nim game. Now I want to apply the try catch block to the program to make sure the flow control is perfect. However, the resources I've seen for now is to catch the exception in the main method that all the…
Woden
  • 1,054
  • 2
  • 13
  • 26
0
votes
2 answers

How can I call binarySearch() on my Entry class?

I'm making a book index where I have an inner class called Entry which holds a String (the word itself) and an Integer TreeSet to hold all the line numbers the word appears on. I have a ListIndex class (which holds the Entry class) where I create an…
0
votes
0 answers

Allowing Users to create their own table of data

We want to allow our web users to define a timetable for themselves. However because the events are very varied the information may not be exactly the same so the column headings and number of columns vary. (We may be forced to define it in general…
lizat
  • 3
  • 3
0
votes
2 answers

udpate the value of a user.defined variable in gnuplot

I would like to plot a series of parametric plots, based on a user defined variable, say a. For example: a=1 plot a*sin(x) a=2 replot a*sin(x) However, it seems that when I update a, both plots are updated. Is it possible to keep the first plot…
EmThorns
  • 119
  • 6
0
votes
1 answer

How to filter Intellisense, Auto Completion, in Visual Studio C#, to show only members that the Project defined?

How to filter Intellisense, Auto Completion, in Visual Studio C#, to show only members that the Project defined, or that are contained in the assembly from which I am currently editing code. Or that are defined in the actual class/interface that I…
0
votes
1 answer

used-defined verbosity level (alias) for UVM reporting (using uvm_info)

In UVM, there are pre-defined verbosity levels: UVM_DEBUG UVM_FULL UVM_HIGH UVM_MEDIUM UVM_LOW UVM_NONE Actual reporting can be controlled using command line argument, e.g. +UVM_VERBOSITY=UVM_LOW (1) Is there a way to have user-defined verbosity…
GorchM
  • 11
  • 3
0
votes
0 answers

Is there assign a dunder method a custom operator?

So I was wondering is it possible to make a new dunder method that has its own operator? Something like this: class test: def __init__(self, name): self.name = name pass def __user__(self, times): …
RhinoCodes
  • 71
  • 7
0
votes
4 answers

SAS: When using user defined formats, if there's not a match, "default value" is the unformatted input variable?

In SAS EG, I have a user defined format value $MDC '001' = '77' '002' = '77 ... '762' = '14' etc. My data set has DRG_code string variables with values like '001' and '140'. I was trying to create a new variable, with the below code. MDC =…
JaneA
  • 87
  • 1
  • 1
  • 6
0
votes
1 answer

Invalid user-defined conversion: C++ error

I am making a (very) simple calculator program in C++ using Code::Blocks as my IDE. I am experiencing a couple of errors in my program. Please take a look at my code and tell me what the mistake is. Thank you. #include #include…
AtomProgrammer
  • 245
  • 3
  • 13
0
votes
1 answer

domdocument throws error as "user-defined type not defined" in vb6.0 windows 10, i referred the xml 6.0 in my project

In VB 6.0 (Windows 10) I am facing compile time error at DOMDocument: User-defined type not defined The same code compiled in XP. I need to know the reason and fix for this issue. Friend Sub Load(xDocvar As DOMDocument) Actual result: it throws…
Kumar
  • 1
  • 1
0
votes
1 answer

python user-defined function need help to fix error

I would like to write a python function as below: import numpy as np a = [[-0.17985, 0.178971],[-0.15312,0.226988]] (lambda x: x if x > 0 else np.exp(x)-1)(a) Below is python error message: TypeError Traceback (most…
0
votes
1 answer

How to implement user-defined reduction with OpenACC?

Is there a way to implement a user-defined reduction with OpenACC similar to declare reduction in OpenMP? So that I could write something like #pragma acc loop reduction(my_function:my_result) Or what would be the appropriate way to implement…
Fabian
  • 547
  • 1
  • 4
  • 17