I try lots of things but I failed kindly help me with how to do this and please someone shares a complete. I also share a screenshot of the original app I making same like this app.
App description:
1:When typing or calculating on the app if the user needs the next line and show a list num
2: The most important thing is when we calculate any num can we write something in the same type ( you think it's a notepad + calculator)?
3: Also when we write and type 5 + 5 we don't need to press = equal to. they abstract and subtract automatically.
thank you so much for your support.
I've been scrubbing google to find a quick reference for macro coding in Attachmate extra! unsuccessfully. Could someone point me to a URL to learn what I need to know, tell me how to resolve the code below or both.
I took a "Hello World" example and a recorded macro and mushed the below code together, which does what i need with a couple exceptions.
Dim dlgHello as HelloDialog 'Declare the dialog file.
nRet = Dialog (dlgHello)
Select Case nRet 'dlgHello.AllButtons
Case - 1 ' OKButton
Sess0. Screen. Sendkeys ("Show a60:4aug;a")
Sess0. Screen. Sendkeys("<Enter>")
Sess0. Screen.WaitHostQuiet (g HostSettleTime)
System. Timeoutvalue = OldsystemTimeout
Msabox "Done"
Case 0 ' CancelButton
Msgbox "Goodbye! "
End Select
While this code above works, I need to change it to pull system date and subtract two days.
Original code Sess0. Screen. Sendkeys ("Show a60:4aug;a")
Instead of the static 4aug, I need the code to pull the system date then subtract two days.
My failed attempt was Sess0. Screen. Sendkeys ("Show a60:"Today() -2"a")
Would be grateful if anyone could tell me how to resolve this and also point me to a good learning resource. Thanks
I received a working solution from Tom F in the MicroFocus community. Solution below.
Sub Main
Dim myDate
myDate=CVar(Date)-2
myDate = Format(myDate, "dmmm")
End Sub
https://portal.microfocus.com/s/article/KM000008384?language=en_US
I have this timer I wrote myself but its way too complicated and then when I need to get back to it to re-use it I already forgot how it works and always takes some time to understand. For sure there must be a simpler way to do it.
Here it is:
=IF(((E4/86400+DATE(1970,1,1))+TIME($K$9,0,0))<NOW(),"RENT", IF((TRUNC(((iferror(datedif(NOW(), E4/86400+DATE(1970,1,1), "d"),""))-TIME((24-(text(E4/86400+DATE(1970,1,1) - NOW() - int(E4/86400+DATE(1970,1,1) - NOW())+TIME($K$9,0,0), "HH"))),0,0))) - 365 * iferror(datedif(NOW(), E4/86400+DATE(1970,1,1), "y"),""))<(1),"",(TRUNC(((iferror(datedif(NOW(), E4/86400+DATE(1970,1,1), "d"),""))-TIME((24-(text(E4/86400+DATE(1970,1,1) - NOW() - int(E4/86400+DATE(1970,1,1) - NOW())+TIME($K$9,0,0), "HH"))),0,0))) - 365 * iferror(datedif(NOW(), E4/86400+DATE(1970,1,1), "y"),""))&"d ")&(TEXT((E4/86400+DATE(1970,1,1))-(now()-TIME($K$9,0,0)),"HH""h"" mm""m""")))
The "d" from days needs to disappear when ETA is less than 24h.
Is there a cleaner simpler way to do this?
My file:
https://docs.google.com/spreadsheets/d/1ExXtmQ8nyuV1o_UtabVJ-TifIbORItFMWjtN6ZlruWc/edit?usp=sharing
unix input countdown:
=REGEXREPLACE(TEXT(E4/86400+25569-NOW(),
"\"&INT(E4/86400+25569-NOW())&"\d h\h m\m"), "0d ", )
I'm using the Codahale metrics in my Scala application, but don't seem to see a way to get the last value for a timed operation. I can get mean, median, and percentiles - all great stuff from the histogram - but I just want to know how long the last operation took!
Look at entry zero in the snapshot and scale it from the value in nanoseconds down to milliseconds? That doesn't seem to be right...
I must be missing the obvious!
t.time {
iService.availCheck(q)
} match {
case ReturnInfo(Some(true)) =>
// The HUB says TRUE, this name is available. That's gold.
logger.debug("Avail check for (" + q + ") HUB TRUE: " + (t.snapshot.getValues()(0) / 100000.0).toString + "ms")
Ok(Some(true))
}
Found the answer - the stop() function, embedded in the t.time call, returns the elapsed time. I just had to refactor my code to have access to it. If not consumed, it's lost. Poof.
Go figure ;)
I have been googling from last couple of hours for finding that is there any way to clear NSLog output using code or not?
Like we have clrscr() in c. So if we are trying to print something which we want to focus most and there is lots of log printin there we can put that code there and get keep our desire log on top for easy searching. This can be done by putting breakpoint on my NSLog line and than click on clear console. but question is is there a way to achive this programatically?
I found few question on stack overflow but I din't satisfied with answer like this is saying that I can disable log for release mode etc.
Or I can use DLog, ALog or ULog as requirement but my question is different..
Any one can help me in this?
Thanks in advance :)
You can use a conditional breakpoint to simulate it. Define a function like this in your code:
int clear_console()
{
NSLog(#"\n\n\n\n\n\n\n\n");
}
Then, when you want to clear the console just add a breakpoint before the NSLog with this condition:
Condition: 1 > 0
Action: Debugger Command expr (int) clear_console()
Options: Automatically continue after evaluating Check it to skip the pause.
Tested with Xcode 4.3.2 and lldb.
Previous answer:
AFAIK, no, there isn't.
Just in case you're not doing it yet, you can create custom macros to format the output to highlight what you want.
Define macros like this:
#define CLEAR(...) NSLog(#"\n\n\n\n\n\n") /* enough \n to "clear" the console */
#define WTF(...) CLEAR();NSLog(#"!!!!!!!!!!!!!!");NSLog(__VA_ARGS__)
#define TRACE(__message__) NSLog(#">>>>>>>>>>>>>>> %# <<<<<<<<<<<<<<<<<<<", __message__)
Then:
WTF(#"This should't be here object: %#", theObject);
...
TRACE(#"Start Encoding");
...
It's not what you want but it pretty much solves the problem. You'll end up with your own set of macros with custom prefixes easily scannable in the console output.