Questions tagged [user-defined]

253 questions
1
vote
0 answers

How to convert VBA responseText to a user-defined tuple?

When trying to convert responseText to a user-defined object, I get the error: Sub or Function not defined. How do I convert a tuple sent by the server in responseText? Some previous posts suggested of casting using CType but VBA can't seem to find…
Gnosis
  • 11
  • 2
1
vote
3 answers

Make a user defined variable array

I have to write a simple code that takes a char as input or a string with an integer. Then makes a std vector, depending on the input. If the text says int I have an int vector. The only problem is that I don't want to declare for each variable type…
Hack Er
  • 11
  • 2
1
vote
0 answers

User-Defined Table Type - Dynamic SQL Function Call - Not switching databases (thows error)

I need a SQL guru, this is driving me crazy... I'm getting an error when executing dynamic SQL with a user-defined Table Type: Error: Operand type clash: VariableTableType is incompatible with VariableTableType Problem: It doesn’t seem to really…
1
vote
1 answer

Why can't I rewrite a list in a user-define function?

I am going to rewrite a list in a user-defined function, simply using the name of itself, rather than any built-in list function, but it doesn't work. Using built-in functions(.append, del, etc) to mutate the list does work, but I still wonder why…
mj li
  • 11
  • 2
1
vote
1 answer

Do xhtml or xml allow comments to be started by user defined tags?

Reusing old php-code and html-files I wanted to comment out large sections, but that's not too easily achievable, because those sections contain comments themselves already. Looking at the helpfile for php and the 5.3 html syntax at w3 I found out,…
John
  • 605
  • 9
  • 28
1
vote
1 answer

How to write dynamic variable in beanshell post processor?

We have user defined variable name as "search". I am using below line to write in csv file in beanshell postprocessor but its showing me "void" in csv file: print(${search}); please help.
Anonymous
  • 109
  • 2
  • 12
1
vote
0 answers

Oracle create function fails

can somebody tell me why the below function should fail compilation? CREATE or replace FUNCTION CONCAT_LIST (cur IN SYS_REFCURSOR, sep IN VARCHAR2) RETURN  VARCHAR2 IS  ret VARCHAR2(32000);  tmp VARCHAR2(4000);  BEGIN  --open…
sammy
  • 553
  • 1
  • 4
  • 5
1
vote
1 answer

How to save mappable object to nsuserdefault?

I want to save custom whole object to NSUserDefault ? This is my custom object .. import UIKit import ObjectMapper class SAuthModel: Mappable { var status: Int? var message: String? var result: SResultModel? var authToken:…
1
vote
0 answers

How can I check if user-provided PHP code is valid?

How can I check if user-provided PHP code is valid? Specifically, I have a couple of PHP scripts that users can edit via the UI for a variety of reasons. If users edit those scripts, how can I verify that what they provide is valid and isn't going…
HartleySan
  • 7,404
  • 14
  • 66
  • 119
1
vote
1 answer

Bold all between * asterisks with User Defined Language in Notepad++

I'm trying to set a user defined language in Notepad++ to bold all text between asterisks followed by space. I've clicked on user defined language and then create new language, then in comments tab I set for "open" and "close" an *. This works but…
Ger Cas
  • 2,188
  • 2
  • 18
  • 45
1
vote
2 answers

What is the proper method or keyword to put in a user-defined method that renames a variable in C#?

this is part of my code: private void button1_Click(object sender, EventArgs e) { int Chocolate = int.Parse(QtyChocolate.Text); TableUpdate("Chocolate", QtyChocolate.Text); int Vanilla = int.Parse(QtyVanilla.Text); …
Stoverflow
  • 65
  • 6
1
vote
2 answers

MySQL : using user-defined variables for a table name

I would like to use a user-defined variable in the FROM part of a query like in the example below : SET @year = 2013, @ID3_1 = 107001001, @TableSource = "S_EXPO_RISQUES_METEO"; SELECT @ID3_1, @year, TS.ID_TER, TS.VALUE…
Aberange
  • 13
  • 4
1
vote
0 answers

Can not change text after Locale has changed

I try to use two languages in my application.I have different string.xml files in my project. I try to change language like this public class LocaleManager { public static final String LANGUAGE_ENGLISH = "en"; public static final String…
BekaKK
  • 2,173
  • 6
  • 42
  • 80
1
vote
1 answer

SQL Query - Conditional Values in a User-defined Column

Hi Stack Overflow Community, I am researching how to create a query that conditionally assigns values in a user-defined column based upon values in another column. I didn't know if this was entirely possible, as I couldn't find any references on…
1
vote
0 answers

PostgreSQL How to create a user-defined pseudo-type

I was not able to find neither in the documentation nor in any stack exchange forum how to create in PostgreSQL a user-defined pseudo-type. I am defining temporal types (i.e., types that vary over time) and the subtypes of the temporal types can be…
Esteban Zimanyi
  • 201
  • 3
  • 6