Make a simple code to save Iproperties

Make a simple code to save Iproperties

haphanthanhtam.work
Enthusiast Enthusiast
463 Views
3 Replies
Message 1 of 4

Make a simple code to save Iproperties

haphanthanhtam.work
Enthusiast
Enthusiast

Hi guys!!!
I need to create an iproperties using the following line of code
result as a image 

cwwwwwwwwwwwwwwwww.png

This code use 

AA = 67890
Dim oCPropName As String = InputBox("B", "Property Name", AA)

 




0 Likes
464 Views
3 Replies
Replies (3)
Message 2 of 4

A.Acheson
Mentor
Mentor

The cleanest is just using ilogic API with two input boxes, one for the Name and the other the value

See article here for ilogic iproperties.

 

Dim oCPropName As String = InputBox("B", "Property Name", "B") 

Dim oCPropValue As String = InputBox("B", "PropertyValue", "67890") 

iProperties.Value("Custom", oCPropName) = oCPropValue

 

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan
0 Likes
Message 3 of 4

haphanthanhtam.work
Enthusiast
Enthusiast


HI @A.Acheson 
I want input only 1 value Property Name 
PropertyValue = AA
When I input Property Name The message will show the value of AA

ccccc33333333.png


AA = 67890

Dim oCPropName As String = InputBox("B", "Property Name", AA) 


iProperties.Value("Custom", oCPropName) = oCPropValue

 

0 Likes
Message 4 of 4

A.Acheson
Mentor
Mentor

You will still need two input boxes one for the name and one for the value. You won't be able to write and read at the same time. 

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan