How to use the setString function from bindings

Find comprehensive JavaScript bindings.setString code examples handpicked from public code repositorys.

72
73
74
75
76
77
78
79
80
81
}

function setFacility(profile, record, model) {
    astlib.setNumber(record, TRACK_NUMBER, model.trackNumber);
    astlib.setString(record, AIRCRAFT_ADDRESS, '23FFAA');
    astlib.setString(record, AIRCRAFT_IDENTIFICATION, 'PAKON321');

    astlib.setBoolean(record, MODE3A_V, true);
    astlib.setBoolean(record, MODE3A_G, true);
    astlib.setBoolean(record, MODE3A_L, true);
fork icon4
star icon8
watch icon4

+ 11 other calls in file

111
112
113
114
115
116
117
118
119
});

it('String', function() {
        var str = "Janťžščťžt";
        assert(astlib.hasItem(asterixRecord, FPL_DATA_STAR) == false);  
        astlib.setString(asterixRecord, FPL_DATA_STAR, str);
        assert(astlib.hasItem(asterixRecord, FPL_DATA_STAR) == true);   
        assert(astlib.getString(asterixRecord, FPL_DATA_STAR) == str);
});
fork icon4
star icon8
watch icon4

+ 6 other calls in file

Other functions in bindings

Sorted by popularity

function icon

bindings.createKey is the most popular function in bindings (8616 examples)