Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

5
LINES

< > BotCompany Repo | #1023948 // dm_setOpt - get field in module if it exists

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2125L/14K).

1  
svoid dm_setOpt(O moduleOrID, S field, O value) {
2  
  O mod = dm_getModule(moduleOrID);
3  
  if (containsField(mod, field))
4  
    dm_set(mod, field, value);
5  
}

Author comment

Began life as a copy of #1022368

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1023948
Snippet name: dm_setOpt - get field in module if it exists
Eternal ID of this version: #1023948/3
Text MD5: b01d7798eadef2b2625619aa5449b774
Transpilation MD5: 4fa6771ffbf88e41d091db766f1913b4
Author: stefan
Category: javax / stefan's os
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-13 22:01:39
Source code size: 155 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 227 / 307
Version history: 2 change(s)
Referenced in: [show references]