Search Project: *:*

 
<< < 1 .. 1800 1801 1802 1803 1804 .. 3647 > >> (Page 1802 of 3647)

wiki Discussion lloeffler wiki (Discussion)
Forum for wiki comments
Last updated: 2023-08-09

blog Discussion lloeffler blog (Discussion)
Forum for blog comments
Last updated: 2023-08-09

Home lloeffler wiki (WikiPage)
This is the personal project of lloeffler. This project is created automatically during user registration as an easy place to store personal data that doesn't need its own project such as cloned repositories.
Last updated: 2023-08-09

(no subject) lloeffler wiki (Thread)
Last updated: 2023-08-09

wiki Discussion brumfitt wiki (Discussion)
Forum for wiki comments
Last updated: 2023-08-09

blog Discussion brumfitt blog (Discussion)
Forum for blog comments
Last updated: 2023-08-09

Home brumfitt wiki (WikiPage)
This is the personal project of brumfitt. This project is created automatically during user registration as an easy place to store personal data that doesn't need its own project such as cloned repositories.
Last updated: 2023-08-09

(no subject) brumfitt wiki (Thread)
Last updated: 2023-08-09

wiki Discussion maksiss wiki (Discussion)
Forum for wiki comments
Last updated: 2023-08-09

blog Discussion maksiss blog (Discussion)
Forum for blog comments
Last updated: 2023-08-09

(no subject) maksiss wiki (Thread)
Last updated: 2023-08-09

Home maksiss wiki (WikiPage)
This is the personal project of maksiss. This project is created automatically during user registration as an easy place to store personal data that doesn't need its own project such as cloned repositories.
Last updated: 2023-08-09

blog Discussion evrens26 blog (Discussion)
Forum for blog comments
Last updated: 2023-08-09

Home evrens26 wiki (WikiPage)
This is the personal project of evrens26. This project is created automatically during user registration as an easy place to store personal data that doesn't need its own project such as cloned repositories.
Last updated: 2023-08-09

wiki Discussion evrens26 wiki (Discussion)
Forum for wiki comments
Last updated: 2023-08-09

(no subject) evrens26 wiki (Thread)
Last updated: 2023-08-09

Post by hermsen on #23 CreateProperties from variable declaration in FB Scripting snippets (Post)
def CreateAllProperties(fbname): # get current project project = projects.primary # find the function block fb = project.find(fbname, True)[0] # get the declaration text declaration = fb.textual_declaration # iterate all lines in the declaration for i in range(declaration.linecount): line = declaration.get_line(i) # get this declaration line stripped = line.strip() # strip out white space in this line endofline = stripped.find(";") stripped = stripped[0:endofline] # discards anything past the ";" (comments, etc) if stripped.startswith("_"): var = stripped.split(":") #NOTE: this also removes initial value declarations, or puts them into the [2] index of var, which we can discard membername = var[0].strip(" ") propname = membername.lstrip("_"); proptype = var[1].strip(" "); print("Creating property \"" + propname + "\" with type " + proptype) fb.create_property(propname, return_type=proptype, language=None) print("property " + propname + " with type " + proptype + "was created!") newprop = fb.find(propname)[0] getter = newprop.find("Get")[0] setter = newprop.find("Set")[0] #newprop.textual_declaration.insert(0,0,"{attribute 'monitoring':='call'}\r\n") print("Inserting to getter") getter.textual_implementation.replace(propname + ":= " + membername + ";") print("Inserting to setter") setter.textual_implementation.replace(membername + ":= " + propname + ";") CreateAllProperties("*NameOfFunctionBlock*")
Last updated: 2023-08-09

wiki Discussion nafichir wiki (Discussion)
Forum for wiki comments
Last updated: 2023-08-09

blog Discussion nafichir blog (Discussion)
Forum for blog comments
Last updated: 2023-08-09

Home nafichir wiki (WikiPage)
This is the personal project of nafichir. This project is created automatically during user registration as an easy place to store personal data that doesn't need its own project such as cloned repositories.
Last updated: 2023-08-09

(no subject) nafichir wiki (Thread)
Last updated: 2023-08-09

<< < 1 .. 1800 1801 1802 1803 1804 .. 3647 > >> (Page 1802 of 3647)

Showing results of 91168

Sort by relevance or date