Tutorial by Examples: and

var alertResult = await DisplayAlert("Alert Title", Alert Message, null, "OK"); if(!alertResult) { //do your stuff. } Here we will get Ok click action.
just use your cmd: You can use the ng generate (or just ng g) command to generate Angular components: Component: ng g component my-new-component Directive: ng g directive my-new-directive Pipe: ng g pipe my-new-pipe Service: ng g service my-new-service Class: ng g class my-new-classt...
Whenever you FIND a record you can aquire a lock of it. NO-LOCK: Used for read only operations. If you do a FIND <record> NO-LOCK you cannot in any way modify the record. FIND FIRST Customer NO-LOCK NO-ERROR. EXCLUSIVE-LOCK: Used for updates and deletes. If you do this you will "own&...
The subtypes' stream-oriented attributes are called to write objects to a file, bare and using binary default representations. with Ada.Streams.Stream_IO; procedure Main is type Fruit is (Banana, Orange, Pear); type Color_Value is range 0 .. 255; type Color is record R, G, B :...
Java technology is both a programming language and a platform. The Java programming language is a high-level object-oriented language that has a particular syntax and style. A Java platform is a particular environment in which Java programming language applications run. There are several Java platf...
The SharePoint Unified Logging Service (ULS) provides support and debugging capabilities for both ops and developers. Understanding how to read the logs is an important first step to resolving issues. Tooling Microsoft provides the ULS Viewer to help read old logs and logs that are currently being...
New Java programmers often forget, or fail to fully comprehend, that the Java String class is immutable. This leads to problems like the one in the following example: public class Shout { public static void main(String[] args) { for (String s : args) { s.toUpperCase(); ...
import gzip import os outfilename = 'example.txt.gz' output = gzip.open(outfilename, 'wb') try: output.write('Contents of the example file go here.\n') finally: output.close() print outfilename, 'contains', os.stat(outfilename).st_size, 'bytes of compressed data' os.system('file...
After installing Visual studio code configure .net core and C#. Configure C# based on market-place. Reference Url: C# market place .net core Launch Visual studio code. Press [ctrl + P] paste "ext install csharp" this and hit. Once done above steps , C# extension available i...
Open the project folder in VScode. Sample here i am setting break point in home controller. Now click the debug option. add debug configuration like below. Make sure .Net core Launch(web) is selected. You can see break point will hit , once you start debugging by press run icon. Then gi...
In Progress 4GL the normal way to write a special character is to preceed it with a tilde character (~). These are the default special characters SequenceInterpreted asComment~""Used to write " inside strings defined using "string".~''Used to write ' inside strings defined...
It's very simple to pass temp-tables in and out of programs, procedures and functions. This can be handy if you want a procedure to process a bigger number of data than you can easily store in a string or similar. You can pass temp-tables as INPUT, OUTPUT and INPUT-OUTPUT data. Inputting one temp-...
To run ARM assembly code you will need a machine with an ARM processor. If you are on Linux you can use the following commands to compile your program: as -o prog_object.o my_prog_source.s Link to get the executable: ld -o run_prog prog_object.o Run using: ./run_prog If you run echo $? it wil...
In kafka, each consumer from the same consumer group gets assigned one or more partitions. Note that it is not possible for two consumers to consume from the same partition. The number of flink consumers depends on the flink parallelism (defaults to 1). There are three possible cases: kafka pa...
There are several ways to search a given value in std::set or in std::multiset: To get the iterator of the first occurrence of a key, the find() function can be used. It returns end() if the key does not exist. std::set<int> sut; sut.insert(10); sut.insert(15); sut.insert(22); ...
Lambdas are a useful shortcut for hooking up behaviors to GUI elements. b = cmds.button("make a cube", command = lambda _: cmds.polyCube()) However, due to the way Python captures variables inside of lambdas, you can get unexpected results if you bind commands using lambdas inside a lo...
/** * data - passed in object * switch - get file extension if there is one * nlapiCreateFile - create file in File Cabinet * nlapiAttachRecord - attach file to record */ function StoreAttachFile(data) { var record_type = data.recordType var record_id = data.recordId; ...
Converting date and time strings to numeric arrays can be done with datenum, though it may take as much as half the time of reading a large data file. Consider the data in example Textscan. By, again, using textscan and interpret date and time as integers, they can rapidly be converted into a numer...
Button API provides an easy way to assign common keyboard shortcuts to buttons without the need to access accelerators' list assigned to Scene or explicitly listening to the key events. Namely, two convenience methods are provided: setDefaultButton and setCancelButton: Setting setDefaultButton ...
/** * Save the results from the saved search as .csv and store in file cabinet * Get the file's internal id when loading the file * Use \n to process each row * Get the internal id and whatever columns that need updating * Create a filtered search and pass the internal id * If the passe...

Page 127 of 153