HP50g: HP50g - hot to check if the object of the stack is a number?
How to check if an object on the stack is a number or another type of data? There seems to be no any function to check on 50g.
50 g advanced users to see, page 1-13:
"The order TYPE ([left SHIFT] PRG-> TEST-> NXT-> TYPE) accepts any object as argument and returns the number that identifies the type of this object." For example, 'HELLO' TYPE returns 2, the value of a string object. See table of object types in Chapter 3, in the command TYPE, to find objects of calculator and corresponding type numbers.
Generally want to DUP the object to the level of the stack 1 first of all, because likely you want to do something with it, after checking his type. The following RPL program checks the type of the object in level 1 of the pile and adds a string to the stack indicating its type. Only some of the possible types are checked and a generic "something else" translates to others:
«
TYPE OF DUP
CASE
DUP 0 == THEN DROP 'real number' END
DUP 1 == THEN DROP "complex number" END
DUP 2 == THEN DROP 'chain' END
DUP 3 == THEN DROP "real array" END
DUP 5 is THEN DROP 'list' END
DROP "something else"
END
»
Tags: HP Tablets
Similar Questions
-
Check if the input value is number or not
Hello
I have the message text entry field. It's field 'Amount' and the user must enter a numeric value only in this area.
How can I check if the input value is number or not.
If the user enters the value 'character' in the field 'Amount' syster must raise the error.
How can I achieve this?
Help, please!
Thank you
VikramHello
Try the code below
java.lang.Character import;
If (str! = null | str.length ()! = 0)
{for (int i = 0; i)< str.length();="">
{If we find a non-digit character we return false.
If (!.) Character.isDigit (str.charAt (i)))
{
throw new OAException ("it is not a number", OAException.ERROR valid);
}
}
}Thank you
Pratap -
Check if the string is a number
I need to check if a string is entered in a textinput control is not a number and do something. I tried
If ((object.text is Number) == false) {}
error = true;
}
But this does not work, I tried google, but didn't find anything useful.I think I'll go with the regex solution, even if it still does not work: s
It always returns true even if it has an 'a' or so in it. It seems to only do that when the 'a' is NOT in front of the string.
EDIT: found on google: var expression: RegExp = / ^ [0-9] + $/;
Thank you for you answer and help me :)
-
How to check if the persistence Unit objects are persistent or not?
How to check if the persistence Unit objects are persistent or not?
I have correctly set up and deploy the object used as a persistence in Oracle coherence unit according to the guide Chapter 6 of tutorial for Oracle coherence 3.5
Using the RunEmployeeExample script, I had good results. I see that once the cache object is updated, the database table (employees) is also updated accordingly. Here is the result:
But I can't check whether the persistence unit is still persistent.2009-11-05 11:09:55.043/53.467 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): Member(Id=2, Timestamp=2009-11-05 11:09:54.867, Add ress=192.168.8.80:8089, MachineId=24656, Location=process:1684, Role=OracleRunEmployeeExample) joined Cluster with senior member 1 2009-11-05 11:09:55.604/54.028 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): Member 2 joined Service Management with senior memb er 1 2009-11-05 11:09:56.885/55.309 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): TcpRing: connecting to member 2 using TcpSocket{Sta te=STATE_OPEN, Socket=Socket[addr=/192.168.8.80,port=8089,localport=4084]} 2009-11-05 11:09:57.847/56.281 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): Member 2 joined Service JpaDistributedCache with se nior member 1 2009-11-05 11:09:57.917/56.341 Oracle Coherence GE 3.5.2/463 <D5> (thread=DistributedCache:JpaDistributedCache, member=1): Service JpaDistributed Cache: sending ServiceConfigSync containing 258 entries to Member 2 2009-11-05 11:10:04.086/62.510 Oracle Coherence GE 3.5.2/463 <D5> (thread=DistributedCache:JpaDistributedCache, member=1): Deferring the distribu tion due to 1 pending configuration updates [EL Info]: 2009-11-05 11:10:14.36--ServerSession(2883071)--EclipseLink, version: Eclipse Persistence Services - 1.1.1.v20090430-r4097 [EL Info]: 2009-11-05 11:10:22.312--ServerSession(2883071)--file:/C:/JDeveloper/mywork/AppJPA/JPA/classes/-JPA login successful 2009-11-05 11:10:24.305/82.729 Oracle Coherence GE 3.5.2/463 <D5> (thread=DistributedCache:JpaDistributedCache, member=1): 3> Transferring 128 ou t of 257 primary partitions to member 2 requesting 128 2009-11-05 11:10:25.697/84.121 Oracle Coherence GE 3.5.2/463 <D4> (thread=DistributedCache:JpaDistributedCache, member=1): 1> Transferring 129 ou t of 129 partitions to a node-safe backup 1 at member 2 (under 129) 2009-11-05 11:10:25.857/84.281 Oracle Coherence GE 3.5.2/463 <D5> (thread=DistributedCache:JpaDistributedCache, member=1): Transferring 0KB of ba ckup[1] for PartitionSet{128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256} to member 2 2009-11-05 11:10:40.678/99.102 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): TcpRing: disconnected from member 2 due to a kill r equest 2009-11-05 11:10:40.678/99.102 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): Member 2 left service Management with senior member 1 2009-11-05 11:10:40.678/99.102 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): Member 2 left service JpaDistributedCache with seni or member 1 2009-11-05 11:10:40.708/99.132 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): Member(Id=2, Timestamp=2009-11-05 11:10:40.708, Add ress=192.168.8.80:8089, MachineId=24656, Location=process:1684, Role=OracleRunEmployeeExample) left Cluster with senior member 1 2009-11-05 11:10:40.879/99.303 Oracle Coherence GE 3.5.2/463 <Info> (thread=DistributedCache:JpaDistributedCache, member=1): Restored from backup 128 partitions 2009-11-05 11:10:40.879/99.303 Oracle Coherence GE 3.5.2/463 <D4> (thread=DistributedCache:JpaDistributedCache, member=1): 0, 1, 2, 3, 4, 5, 6, 7 , 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 4 4, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80 , 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 11 3, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 2009-11-05 11:28:39.800/1178.224 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): Member(Id=2, Timestamp=2009-11-05 11:28:39.635, A ddress=192.168.8.80:8089, MachineId=24656, Location=site:metsys.metex.com,machine:mw12,process:1752, Role=CoherenceConsole) joined Cluster with s enior member 1 2009-11-05 11:28:40.231/1178.655 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): Member 2 joined Service Management with senior me mber 1 2009-11-05 11:28:41.633/1180.057 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): TcpRing: connecting to member 2 using TcpSocket{S tate=STATE_OPEN, Socket=Socket[addr=/192.168.8.80,port=8089,localport=4143]} 2009-11-05 11:30:01.658/1260.082 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): Member 2 joined Service DistributedCache with sen ior member 2
Published by: jetq on November 5, 2009 11:49Re:
Does the above result shows that the persistence work is finished successfully?
Yes, it's nice. What is persistence. These are the characteristics of persistence.
Junez
-
Satellite Pro 2100 is hot when you use the knee
Hello.
I have a 2100.
I started using it again after using it not for a few months.I noticed when it is sitting on my lap if feels very hot and the fan comes on a very large number.
The problem is that I don't remember if it was always like this or if it's a recent thing.Anyone know if this is normal behavior or the computer can run a bit on the warm side of the signs?
I have don t wonder that temperature increases when using the laptop on the lap.
The fact is that the cooling modules are placed in the bottom of the laptop and you would clutter the cooling fans using the laptop on the lap
I recommend to use the notebook on the desk and leave enough free space around the unit.
Last but not least, you should check if the fans are not clogged with dust and debris.
In most cases the dust prevents the cooling fans work properly and this leads to a higher temperature.Clean the cooling modules with a jet of compressed air, that you can buy it from the other computer dealers or online.
See you soon
-
Check if the memory dual channel is activated
Hi, I have a macbook pro 13 "Environment 2010 7.1 and I just upgraded ram from 4 to 16 GB (2x8gb).
I was wondering about dual channel, so my question is:(1) is my mb pro compatible with dual channel?
(2) is it enabled by default?
(3) hot to check?I tried to check on cpu - z via bootcamp on windows7 64 bit but this memory tab is "grayed out", perhaps that cpu - z can not read this info (?).
Thank you everyone
Dual-Channel should be normal/standard...
The thing that probably do is install an SSD in your laptop to considerably improve the performance.
-
How to check if the virtual machine is managed by vCloud Director
Hello
I need to find a way to check in Orchestrator so the virtual machine is managed by Director vCloud.
I can't verify this with PowerCLI command below:
(get - vm Vm_name *). ExtensionData.Config.ManagedBy.ExtensionKey
.. .but my goal is to check in the orchestrator workflow.
Help, please.
You can get the same information from the VC:VirtualMachine object in vCO.
Create a workflow or action with a named input of type vm VC:VirtualMachine and the snippet of code below would get the information you are looking for.
var extensionKey = vm.config.managedBy.extensionKey;
-
Check if an object exists on a page
Hello
I am trying to automate the addition of elements commonly used on existing documents and I want to be able to check if an object already exists in the page so that it is not added twice. I'm pretty new to JavaScript, but confident enough in Indesign CC.
Here is the fragment of script I want to do the work:
// add address window if(!doesObjectExist(myAddressWindow)){ var myAddressWindow=myDocument.pages.item(0).textFrames.add(); var myCorners=CornerOptions.ROUNDED_CORNER; myAddressWindow.properties={name:"myAddressWindow",geometricBounds:["33mm", "20mm", "78mm", "110mm"],strokeWeight:0.5,strokeColor:"Magenta",topLeftCornerOption:myCorners,topRightCornerOption:myCorners,bottomLeftCornerOption:myCorners,bottomRightCornerOption:myCorners}; } function doesObjectExist(objectName){ with(myDocument.pages.everyItem){ if(name==objectName){ return true; } }
the myAddressWindow always item added, even if it already exists and I can't understand why.
Thank you and best regards,
Malcolm
Hi Malcolm,.
You can use itemByName() on the pageItems in the document, if this item you are looking for is not nested (within a group or graphic image or anchored to a text frame etc.pp). :
testSomething("TheNameOfTheThing"); function testSomething(/*String*/myName){ if( app.documents[0].pageItems.itemByName(myName).isValid ){ //Nothing to do: $.writeln("Nothing to do.") return; }; else{ doSomething() }; }; function doSomething(){ /* Your code for adding something should follow here: */ $.writeln("Build something."); };
You could also test is not valid and do something, if it is true.
The code above is just an example not optimized in any way.
Uwe
-
Hi all
OS: Solaris 11 x 86-64
DB: 11.2.0.3
I am trying to install the infrastructure grid + Oracle db 11.2.0.3 on a Solaris 11. I'm used to working with Red - hat, so I don't remember having such a problem. The problem is, when you try to execute "runInstaller" as user oracle:
Doing some research, I found that the solution to this problem would be to install SUNWxwplt package. As you can see below, I have installed all required packages:Checking Temp space: must be greater than 180 MB. Actual 1527 MB Passed Checking swap space: must be greater than 150 MB. Actual 2104 MB Passed Checking monitor: must be configured to display at least 256 colors >>> Could not execute auto check for display colors using command /usr/openwin/bin/xdpyinfo. Check if the DISPLAY variable is set. Failed <<<< Some requirement checks failed. You must fulfill these requirements before continuing with the installation, Continue? (y/n) [n] n User Selected: No
I also configured the DISPLAY env, and here's where I think I'm doing something wrong.root@sol11:/mnt/sf_Compartilhamentos# pkginfo -i SUNWarc SUNWbtool SUNWhea SUNWlibms SUNWpool SUNWpoolr SUNWsprot SUNWtoo SUNWlibm SUNWuiu8 SUNWfont-xorg-core SUNWfont-xorg-iso8859-1 SUNWmfrun SUNWxorg-client-programs SUNWxorg-clientlibs SUNWxwfsw SUNWxwplt system SUNWarc Lint Libraries (usr) system SUNWbtool CCS tools bundled with SunOS system SUNWfont-xorg-core X.Org Foundation X11 core fonts system SUNWfont-xorg-iso8859-1 X.Org Foundation X11 iso8859-1 fonts system SUNWhea SunOS Header Files system SUNWlibm Math & Microtasking Library Headers & Lint Files (Usr) system SUNWlibms Math & Microtasking Libraries (Usr) system SUNWmfrun Motif RunTime Kit system SUNWpool Resource Pools system SUNWpoolr Resource Pools (Root) system SUNWsprot Solaris Bundled tools system SUNWtoo Programming Tools system SUNWuiu8 Iconv modules for UTF-8 Locale system SUNWxorg-client-programs X.Org Foundation X Client Programs system SUNWxorg-clientlibs X.Org Foundation X Client Libraries system SUNWxwfsw X Window System platform required font software system SUNWxwplt X Window System platform software
I think I made all the necessary configurations (?). So, where, what Miss me?-- as oracle user (my statis ip is 192.168.0.20) -bash-4.1$ export DISPLAY=192.168.0.20:0.0 -bash-4.1$ xhost + xhost: unable to open display "192.168.0.20:0.0"
Thanks in advance.Fabricio_Jorge wrote:
Hello. Thank you for your attention.You see, I installed Solaris 11 on a VirtualBox env (only for the objective test), and I'm connected locally on the virtual computer (make sure you don't connect do not). I installed Solaris with gnome, so I'm now working on a GUI Solaris 11.
The strange is that the xclock binary is not found (through research).
You must open directly as an oracle user OS.
YES fails if you like belowSu - oracle
-
The following error occurred in Acrobat when you try to click version history documents in SharePoint 2010. "The URL you provided could not be reached. Check that the URL is correct and that the network location is accessible. "The revision of the document is accessible, but through type HTTP via a web browser... but not through SharePoint <>== magic Acrobat X Pro COM object that works very well for currently extracted from documents. Please see image inserted. Reflections on a fix?
Visitors have not been confirmed, but given the problem reports to is completed 6 months ago, it seems updated for the latest version of product fixes the issues.
-
How to check if the event in actionscript is initiated or not?
Okay, so I played with event management in action script two or three times, but I came across this situation, where I need to check if the event in the actionscript code is already called or not. looks like the code snippet below:
currentTrajectory = new collection ArrayCollection (event.result as Array);
var _multiTrajectoryEvent:MultiTrajectoriesEvent;
If (_multiTrajectoryEvent is initialized) / / that's where I need to check
{
_multiTrajectoryEvent = new MultiTrajectoriesEvent (MultiTrajectoriesEvent.DRAW_AUTO_TRAJ);
}
//raise an event to
Swiz.dispatchEvent (_multiTrajectoryEvent);
}
Whenever I get the result of the database event and I add result to arraycollection of event collection. However, I want to make sure that this event object is created only if it has not been initialized before in order to have the previous value of the table collection event isnide.
Check if the event object is null does not work and if the event is not initialized, I can't check its property bubble as well...
I would appreciate your quick thoughts for the same
Thank you very much
Generally, people reuse events. I've never seen a recycled event object, potentially, it could lead to side effects if any code handling the event maintains a reference to the event.
My advice not to recycle the event objects. They should be garbage collected when they are no longer used. Create a new each time. Your custom event has no payload, so I'm really not point of needing to reuse. Any use not made of currentTrajectory.
-
How to check if the text is loaded?
Hello. I wonder if it is possible (in AS3) to check if the text is loaded in dynamic text field (from the external file).
Any ideas?
Concerning
Hello
Run an ENTER_FRAME event and check the size of the textfield object.
addEventListener (Event.ENTER_FRAME, checkText, false, 0, true);
private function checkText (event: Event): void
{
If (textField.text.length > 0) {}
removeEventListener (Event.ENTER_FRAME, checkText);
game of TextField
}
}
Better to use the TextField object's CHANGE event.
Hope this helps
Best regards
Etienne Das
-
check if the image is loaded before going to the next loop
is this a 'valid' method to check if the current image is loaded before going to the next loop/image?
var mcPics = _root.createEmptyMovieClip ('mcPics', _root.getNextHighestDepth ());
mcPics._x = Stage.width + 1;
for (var i = 0; i < pic_arr.length; i ++)
{
["mc" + i] mcPics = mcPics.createEmptyMovieClip ("mc" + i, mcPics.getNextHighestDepth ());
loadMovie (dir + pic_arr [i], mcPics ['mc' + i]);
While (mcPics ['mc' + i] ._width) continue;
}to do this, you can't even load them in order. You can just count how many have successfully loaded:
var mcPics = _root.createEmptyMovieClip('mcPics', _root.getNextHighestDepth()); mcPics._x = Stage.width+1; var mcl:MovieClipLoader = new MovieClipLoader(); var mclLO:Object = new Object(); mclLO.onLoadInit = function(target){ loadNum++; if(loadNum==pic_arr.length){ //start your animation } } mcl.addListener(mclLO); var loadNum:Number = 0; for (var i = 0; i
-
I use 34.0.5 with Windows 7 and that you cannot print correctly. In print preview, it appears in a label size. I double checked all my settings in firefox and my preferences from the printer, I checked all the pages on firefox problems and still can not solve the problem.
I was able to finally solve the problem, but I had to do a complete reset of firefox. Thank you for your time.
-
I check on the status of the claim
I check on the status of the claim # 1112557863
Apple isn't here.
Username just like you who can't do anything to help you with the status of your application.
Maybe you are looking for
-
How can I search my favorites?
Some sites to change the name when they are my favorites. And then when I look to my favoritesI do not recognize them. I want to my favorites in their research.
-
It stopped, for some reason any functional on firefox, a week or two it y a. I tried to uninstall and reinstall firefox but the problem persists. I've tried chrome and Explorer, and they don't seem to have this problem. I would not stop using firefox
-
Link for download Easy Transfer error
The download link for "Easy Transfer from Vista to Windows 7 32-bit" is in error. Download "Windows Update Standalone Version" instead. The download page for the 64-bit version working properly, so I know that the link is bad. I asked the cat twic
-
Microsoft ISATAP adapter #28 (device driver software installation problems)
Hi all: Just started getting the following error when I start first in regard to Microsoft ISATAP adapter #28: Device driver software was not successfully installed Please consult the manufacturer of your device to help get this device installed. I'm
-
I recently bought agiven to nine Dell 2710 coming from the Dell outlet with core I7 processor,.2 TB HDD and SSD of 32 GB. My problem is that theSSD disk does not appear to be used as nothing is ever writtenand no speed improvements are beneficial to