T tito Member Licensed User Longtime User Feb 15, 2021 #1 Hi B4X Team, I was defining a class with many properties/ variables. I'm matching them with DB content comming from an json string. Class Sub: B4X: Copy public Sub SetItem(colroot As Map) id =colroot.Get("id") text =colroot.Get("text") teilnehmer_id =colroot.Get("teilnehmer_id") titel=colroot.Get("titel") ... ... End Sub It is working fine but to be more flexible for further changes and also "find all references" it would be very great if there is a possiblity like in Visual Basic to get the variable name as string like: Visual Basic Code: B4X: Copy dim var as string = "blabla" dim s as string = NameOf(var) 'will return "var"' I have found some old answers here. Is it still not possible? Thank you for the awesome B4X tools!!!
Hi B4X Team, I was defining a class with many properties/ variables. I'm matching them with DB content comming from an json string. Class Sub: B4X: Copy public Sub SetItem(colroot As Map) id =colroot.Get("id") text =colroot.Get("text") teilnehmer_id =colroot.Get("teilnehmer_id") titel=colroot.Get("titel") ... ... End Sub It is working fine but to be more flexible for further changes and also "find all references" it would be very great if there is a possiblity like in Visual Basic to get the variable name as string like: Visual Basic Code: B4X: Copy dim var as string = "blabla" dim s as string = NameOf(var) 'will return "var"' I have found some old answers here. Is it still not possible? Thank you for the awesome B4X tools!!!
DonManfred Expert Licensed User Longtime User Feb 15, 2021 #2 You ae posting in the wrong place. Bugs and wishes should be postet in the responsible Forum. Bugs & wishlist The place to discuss bugs and missing features. www.b4x.com Upvote 0
You ae posting in the wrong place. Bugs and wishes should be postet in the responsible Forum. Bugs & wishlist The place to discuss bugs and missing features. www.b4x.com
T tito Member Licensed User Longtime User Feb 15, 2021 #3 ups sorry did not recognize. can you please move it or am I also able to? ? Upvote 0
KMatle Expert Licensed User Longtime User Feb 15, 2021 #4 You can match all columns (if I get you right) with a simple loop trough the map (keys = columns, values=content to be checked) vs. the db's columns/content. You can limit which colum is cheked by a simple array with all the column names to be checked. Upvote 0
You can match all columns (if I get you right) with a simple loop trough the map (keys = columns, values=content to be checked) vs. the db's columns/content. You can limit which colum is cheked by a simple array with all the column names to be checked.