Definition of "#" before a variable name
What does this statement mean? I understand != means not equal and so does "==".
((#STATUS == "C" AND #!STATUS != "C") ? !TODAY : #Contingency_date)
That is not tsql. You should post your question to a forum specific to your language or programming environment.
Similar Messages
-
How to declare internal table in BADI with variable name beginning with 0..
Gurus,
How to declare an internal table within a BADI. I have to implement a BADI UC_TASK_CUSTOM for BCS to BW load and there i have to declare an internal table like:
TYPES: BEGIN OF t_cube_data,
0cs_version TYPE /bi0/oics_version,
0sem_cgcomp TYPE /bi0/oisem_cgcomp,
bcs_vers TYPE /bic/oibcs_vers,
bcs_lcus TYPE /bic/oibcs_lcus,
bcs_ldch TYPE /bic/oibcs_ldch,
bcs_invcom TYPE /bi0/oibcs_invcom,
bcs_litem TYPE /bic/oibcs_litem,
bcs_llob TYPE /bic/oibcs_llob,
bcs_lmay TYPE /bic/oibcs_lmay,
0move_type TYPE /bi0/oimove_type,
pcompany TYPE /bi0/oipcompany,
bcs_lprg TYPE /bic/oibcs_lprg,
figlxref3 TYPE /bic/oifiglxref3,
fiscyear TYPE /bi0/oifiscyear,
fiscper3 TYPE /bi0/oifiscper3,
fiscvarnt TYPE /bi0/oifiscvarnt,
curkey_gc TYPE /bi0/oicurkey_gc,
unit TYPE /bi0/oiunit,
cs_trn_gc TYPE /bi0/oics_trn_gc,
cs_trn_qty TYPE /bi0/oics_trn_qty,
END OF t_cube_data
But with this declaration it gives a error saying that u cannot have a variable beginning with 0...like 0cs_version....
but i have to do it for my functionality to wrk...
Please help me do it....
how can i declare a internal table that allows me to have variable names that start with 0....
Please help....Its URGENT....
Thanks
SamMurali,
I need to have 0 before the variable name in the declaration of the internal table....how can i attain that....
Please suggest...
Thanks
Sam -
Using a variable's definition as a variable name
I have a string variable with definition I need to use as a
variable name.
For example, this is super simplified:
var newVariable = 'it is working';
var partOne:String = 'new';
var partTwo:String = 'Variable';
var partThree = partOne + partTwo;
trace("my variable is " + partThree);
Instead of tracing partThree as literally partOne + partTwo
(which traces "newVariable") i'd like it to trace the
Definition of partOne + partTwo (which is "it is working").
I hope this makes sense, help or advice is
appreciated....
var partThree = this[partOne + partTwo];
trace("my variable is " + partThree); //will trace: my
variable is it is working
TS -
Variable names "{name}" showing up before dataset loads
I am using an XML dataset. I have it working perfectly except
for the fact that on the page in question, right before the data
loads, you see the actual variable names writeen out on the page.
Also as part of my data, i am displaying an image, so until the
data loads there is a broken image and then it loads. Is there a
way to handle this so the variables dont show until the data
loads?Hi ehaemmerle,
Checkout this sample:
http://labs.adobe.com/technologies/spry/samples/data_region/HideDataReferencesSample.html
--== Kin ==-- -
How Can I get the value of a variable name stored in another variable?
I have a scenario wherein i get a record as %rowtype as input parameter into my function and i generate a dynamic sql to check the validity of a particular value in one of the columns of the input parameter record.
I have a variable that stores the column name of input parameter record whose value is to be validated.
The dynamic SQL looks like this:
'Select empno from emp where empname = input_rec.'||v_colname
While using Execute Immediate I get the error - Invalid Identifiier -'input_rec'.'ename'
On Googling I found that the input parameter is out of the scope of the SQL that's being executed in the Execute Immediate.
Is there any way I can get the value of ('input_rec.'||v_colname) so that I can pass it into the Execute Immediate with 'Using' clause?karthyk wrote:
I have a scenario wherein i get a record as %rowtype as input parameter into my function and i generate a dynamic sql to check the validity of a particular value in one of the columns of the input parameter record.
I have a variable that stores the column name of input parameter record whose value is to be validated.
The dynamic SQL looks like this:
'Select empno from emp where empname = input_rec.'||v_colname
While using Execute Immediate I get the error - Invalid Identifiier -'input_rec'.'ename'
On Googling I found that the input parameter is out of the scope of the SQL that's being executed in the Execute Immediate.
Is there any way I can get the value of ('input_rec.'||v_colname) so that I can pass it into the Execute Immediate with 'Using' clause?compose the SELECT in a single VARCHAR2 variable before passing variable to EXECUTE IMMEDIATE -
Variable names display problem
I have three transparent text captions that are set to display from slide 1 through to slide 32 (using the option "display for rest of project").
The variables I am displaying are:
In the header:
$$cpInfoProjectName$$ - displays the name of the lesson module.
$$cpInfoCurrentSlideLabel$$ - displays the name of the current slide.
And in the footer:
Page $$cpInfoCurrentSlide$$ of $$rdinfoSlideCount$$ - displays the current slide number and the total number of slides in the lesson.
The problem is that the variable names display long enough to look somewhat unslightly. It might be for about 1/3 of a second but it is long enough to screen capture (attached just in case I am not clear enough in my description) this appearance before they resolve into their values.
This is rather annoying, since a student will see this occur for every slide.
Is there anything that can be done to fix this? Perhaps using a text caption is not the best way to display these variables?
Hmm... I wonder if creating a small persistant flash insert would be better?I have seen that aswell Shawn. It seems like the variables are a bit slow to be populated with the correct value and then it will show the $$variable_name$$.
A Flash component would solve it and it won't take more than 5 minutes to make them all.
/Michael
Visit my Captivate blog with tips & tricks, tutorials and Widgets. -
Using variables as variable names
Hello (me again)
I know I can use this[variable] to evaluate a variable name
so it can be used for such things as referring to a movie clip
e.g
this[variable]._x=100;
However... I'm trying to create movieClips with:
var MovieClipName:MovieClip = new MovieClip()
which doesn't work if I use this[variable] instead of
MovieClipName.Thanks,
I'm having real problems. I'm looping through my movieclips,
as I'd like to load content into them one by one..proceeding to the
next after the first has been loaded.
At the moment I have...
for (var i=1; i<totalImages +1; i++)
this["image" +i].loadMovie("image" +i +".jpg");
bLoaded=0;
bTotal=this["image" +i].getBytesTotal();
while (bLoaded<bTotal)
bLoaded=this["image" +i].getBytesTotal();
This preloader isn't working..as the other images start
loading before the first has completed..bTotal always seems to be 4
which is the number of bytes of an empty movie clip.
How odd -
How to Search for Variable Name in an Apex Page
Hi,
Whenever I am writing code and I need to remove a reference to a variable name, I just to a search and replace on the source.
With Apex, is there a way to do that on the Apex page definition? I have click on every validation, process, report to comb each region for the variable reference. Thanks.Hi Samuel,
Have a look at the APEX views ( Utilities > APEX Views ).
You can select most (all?) of the information associated with a page and then search the result set(s) for the variables you are looking for.
I hope this helps.
Cheers,
Patrick Cimolini -
Truncated variable names in solver
when many variables are created in the solver , upon entering the numeric mode are not displayed correctly , only 1 character and then three points is read, making it impossible to identify which variable it is , for example if more than one starts with the same letter: " S1c " and " S2c " are shown as " S ..." and " S ... "
the equations:
pic
if I choose only one equation, and therefore few variables , the names are displayed correctly:
pic
if I choose 2 equations , there are a total of 8 variables and groups in 2 columns and variable names are truncated:
pic
pic
as seen in this last image , you can not distinguish S1c and S2c .
Obviously S1c is the first and the second S2c but this becomes much more complex when they increase the number of variables and equations.
is there any way to change the view type ?
sorry for my bad English.
thank you very much in advance.OK, simple statement first:
Integer does not equal string.
You also seem to be tossing around "runtime" and "static" somewhat liberally. Once you wire an integer (be it a control or block diagram constant) to the case structure's selector, the cases can only take on integer values. This is by design. If you wire a string, the case items take on string values. If you wire an enum, the case items take on the enumeration values. Once you've defined a case structure's cases you can't change them at "runtime". This, by definition, is different code.
That said, it seems to me that you're looking for an enum. -
Anonymous PL/SQL . Illegal variable Name/number.
Hi
I have tested ODP.NET in ASP.NET for upload images. But when read back from DB then save image to local drive. When I tested given sample code working fine. But when I modify code only select statment in PL/SQL it gives error.
Following statment is the error. Illegal variable Name/number. Pl.
advice me what need to change.
Dim block As String = " BEGIN " & _
" SELECT Ad_Image into :2 from Printmedia WHERE Product_ID = " + ProdID + ";" & _
" end ;"You use bind variables. Great!
And then you do not use bind variables. Bummer!!
Why can you make the output from the SQL a bind variable, but you do not supply Product ID as a bind variable? This causes a unique and non-sharable SQL statement in the SQL Shared Pool. Where the emphasis is very obvious - shared SQL.
The definition should be something like this:
Dim block As String = "BEGIN SELECT Ad_Image into :1 from Printmedia WHERE Product_ID = :2; END;"But why are you using an anonymous PL/SQL block and a bind variable to get to the image? Deal with it as a cursor. Much easier. E.g.
Dim cursorSQL As String = "SELECT Ad_Image FROM Printmedia WHERE Product_ID = :1"Open the cursor. And there you have the resulting image column as a result. -
I have an embedded bitmap resource, one of many in my program, which is an AIR app. There's nothing unusual about it; in fact, I can replace the file to be embedded with a blank white file of the same size, or another (working) bitmap from the same program, and get the following results.
Whether my app works or not depends on what I name the variable corresponding to the embedded resource (the :Class variable after the embed directive). If I name it "sprBatteries", the app hangs at startup in the iPhone; the loading screen transitions into the stage background color, and shows none of the stage contents. If I name it "sprDryCells", or even "sprBatteriesX", it works fine and displays the expected contents.
This works fine testing on my desktop, regardless of the variable name. I suspect that it is encountering an exception on load, but it seems to be happening before FDB can connect, so I don't know what the problem could be. EDIT: Oh, and I believe that it works fine if I compile the app as a simple AS3/Flex app rather than as an AIR app. I haven't done systematic testing to confirm this, though.
Does anyone have any idea what could be going on and how I could fix it?leotemp, that's a very smart(***) answer - but don't name
them
what? I read your earlier post of today: you might benefit
by looking at Aral Balkan's Quick Start about skinning the
components.
I have not seen anything in all the documentation about names
to avoid in naming files. If there are restrictions on this, it
would be nice to see a list of those names and the situations in
which the restrictions apply. I would think renaming the file is
not the first thing a programmer does when an unusual message shows
up in the Problems window in FB.
If anyone has something to say about this, please do so.
Cheers,
Carlos -
I need to run a SQL command in one of the step in my procedure where I need to run command like >>>> Delete from TableA where Column1 LIKE 'MY_VAR' but while running its not substituting the value of MY_VAR.....Any clue how can I run command like this where I have refresh the variable before executing the procedure in the package so variable is declared before procedure execution.I dont wanna refresh the variable with Quotes around because I am using this variable in different places. Any clue how can I put quotes around MY_VAR in Like stament.
I have also tried this>> Delete from TableA where Column1 LIKE '''MY_VAR''' but still variable value is not substituting.The substituted variable will never appear in the log, how are you figuring out it does not get substituted?
In the syntax, you should use something like the following:
Delete from TableA where Column1 LIKE '#MY_VAR'If you use the expression editor to do select the variable name, it should ensure that it is put in correctly. To see if it is actually recognised, in the log, you should see
Delete from TableA where Column1 LIKE '#MyProject.MY_VAR'Craig -
Hi I was wondering if it's possible to use baOpenFile() to
open a file using a variable name. Like selectImg = coco.jpg
getURL('lingo: baOpenFile(_movie.path & selectImg ,
"Normal")');
this is the command in the flash file. If I use a specific
name like GA-VE4-IMG1.jpg instead of the variable name it's work.
the file browser of xp open and display the file. What's
weird is when I use the variable without the " " instead of a file
name it open windows explorer ..... wooh! any clue on how to solve
my problem.it does'nt work, nothing happend. Don't forget that I'm in
flash so if my variable is
selectImg = _movie.path & "GA-VE4-IMG1.jpg" the result is
0. And I cannot use the specific name cause it come to the point
before. If I use direclty
getURL('lingo: baOpenFile(_movie.path &
"GA-VE4-IMG1.jpg", "Normal")'); it's working but it has to be
dynamic cause if I have 50 images, i don't want to use 50 line of
script. Right now
_global.selectImg = etage + "-" + systeme + "-IMG1.jpg";
it use the floor (etage) variable and system (systeme)
variable to define the name of the file to open. ex:
GA-VE1-IMG1.jpg = (garage)-(VE1 system)-Image1.jpg. When I go to an
other system i use the same code and the file change dynamicly to
GA-A2-IMG2.jpg etc.. like that If i have 10-25 systems, i dont have
to touche the code again. All i want to do is to lauch the jpg. I
was using the getURL within flash but bacause it's in director
getURL does'nt work anymore. BuddyAPI is a good xtra but if I can't
use variable it's not that good. -
Variable name that is a variable?
Guys,
I want to create distinct/different menus using my dynamic gui generation program.
The thing is, I need the menu object to be of a different name each time I want to create a menu.
code snippet:
Menu menu;
menu.add( blahcomponent);
I want the menu object to be different each time,
eg,
menu1.add( blah);
menu2.add(blah);
menu3.add(blah);
How can I make it so that the variable "menu"
is distinct each time?
I am thinking of concatenating strings together to create different variable names but this doesn't work as it isn't possible to convert String to a Menu obj?
eg,
menu = "menu".concat(id); // where id is a String // variable
menu.add(blah);
I hope you get my idea. Any help/alternative suggestions highly appreciated.>
menu1.add( blah);
menu2.add(blah);
menu3.add(blah);
How can I make it so that the variable "menu"
is distinct each time?Perhaps you want to use arrays? Arrays are the construct that allows this sort of thing...
Menu[] menus = new Menu[10];
String[] names = new String[] {"men", "ewe", "me", "new", "wow", "foo", "bar", "baz", "qux", "quux"};
MenuItem[][] blas = new MenuItem[10][3];
for (int ii=0; ii<10; i++) {
menus[ii] = new Menu(names[ii]);
for (int jj=0; jj<3; jj++) {
blas[ii][jj] = new MenuItem(...);
menus.add(blas[ii][jj]);
}Try to use arrays. If you've never used arrays before, ty reading the relevant section of the book or online tutorials etc...
Yours, Mike H.. -
Same variable name causes major issues.....
I would like to get some input and possible direction on the issue below... I am new to PL/SQL. Thanks in advance.....
..... The system is in the middle of processing a “For” step, i.e. a given “For” step is incomplete.
..... The script instructs the system to process a second “For” step with the same “for-loop variable” as the incomplete “For” step.
When the above takes place, the system processes the second “For” step incorrectly. Instead of starting at the first value in the second “For” step’s list of values, the system begins in the middle of the value list.
I need to change the current implementation so that if a "For" loop is encountered that has the same “loop variable” as a “For” loop already being executed, the “state” of the previous “For” step is discarded, and the state for the new “For” step is initialized to the first value in its list.
-- Used for "for" steps
TYPE for_list is table of varchar2(4000) index by binary_integer;
TYPE for_loop_state is record (
list for_list,
next_index integer
TYPE for_loops_list is table of for_loop_state index by steps.output_param%TYPE;
all_for_loops for_loops_list;
procedure for_step(list_string IN varchar2, ret_var_name IN varchar2, end_for_label IN varchar2) is
state for_loop_state;
end_idx number;
list_value varchar2(4000);
begin
pkg_util.log('ret_var_name value after begin: ' || ret_var_name, 'I');
-- get the current for list state, based on its output variable name
if all_for_loops.exists(ret_var_name) then
state := all_for_loops(ret_var_name);
else
state.next_index := 0;
list_value := parse_next_param(list_string, 1, end_idx);
-- end_idx is thrown away; for loops only have 1 input parameter (the list)
state.list := get_for_list(list_value);
all_for_loops(ret_var_name) := state;
end if;
if state.next_index < state.list.count then
pkg_session_values.put(ret_var_name, state.list(state.next_index));
all_for_loops(ret_var_name).next_index := state.next_index + 1;
else
all_for_loops.delete(ret_var_name);
jump(end_for_label);
end if;
end;There is so much of your code hidden from view it is impossible to tell you anything other than perhaps suggest a methodology.
Create a single variable with a known value and use dbms_output to view it as it steps through each piece of the puzzle. Determine when the value does something you don't want.
Maybe you are looking for
-
I have an older iMac 5,1 and the disc drive no longer works. I was hoping that I could the Apple USB super drive as a replacement, but the info on the super drive page says compatible with iMac 2012 or later. Does anyone know why it would not work fo
-
Purchases and updates do not match, how do I fix that?
When I go to updates in the App Store they are all listed as up to date but when viewing purchases many that I use every day are listed as needing to be installed. How can I fix this problem? I do not want to reinstall Apps like Lion that work fine b
-
Negative values not showing up in NUMERIC display pattern Szzz,zzz,zz9.99
Hi, I want to use numeric field type and display pattern Szzz,zzz,zz9.99. I don't see neagtive numbers with this format? What do I need to change? Rgds Vara
-
Hi just wondering if anyone has a change in there order status yet. My details: Estimated Shipping: 13 Aug, 2010 Estimated Delivery: 20 Aug, 2010 Ordered: Jul 23, 2010 at 07:37 PM Any ideas on when mine will get shipped? Thanks, - Jahid
-
Fonts appear in color when emailing to a commercial printer
I prepared a newsletter in Pages'09 with color photographs. I sent it as a PDF file to a commercial printer for printing hardcopy. I never changed the default on the text. Below is the response I received from the commercial printer. When I open the